Hello,
I've got following declaration:
...
{$modeswitch typehelpers}
interface
uses
Classes, SysUtils;
type
TBuffer = array of Single;
{ TBufferHelper }
TBufferHelper = type helper for TBuffer
procedure Clear;
end;
...
var aBuffer: TBuffer;
...
And I can do:
aBuffer[3]:=5;
aBuffer.Clear;
Is it possible to do this without helper? Since it's IMO silly to have helper
in the same unit as the original declaration. Helpers are usually used where
extending of the original type is not possible, aren't they?
Thanks, V.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal