mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 11:48:04 +02:00
23 lines
342 B
ObjectPascal
23 lines
342 B
ObjectPascal
unit uw15591;
|
|
{$mode objfpc}
|
|
interface
|
|
|
|
type
|
|
generic GSmartArray<TSomeType> = class
|
|
private
|
|
fItems :array of TSomeType;
|
|
public
|
|
function Length() :Integer;
|
|
end;
|
|
|
|
TBooleanSmartArray = specialize GSmartArray<Boolean>;
|
|
|
|
implementation
|
|
|
|
function GSmartArray.Length() :Integer;
|
|
begin
|
|
Result := System.Length(fItems);
|
|
end;
|
|
|
|
end.
|