Am 01.03.2017 03:39 schrieb <nore...@z505.com>:
>
> How come:
>
>   class operator Initialize(var aFoo: TFoo);
>   class operator Finalize(var aFoo: TFoo);
>
> in a record are called class operator..
>
> why not "record operator"?
>
> Are these advanced neo-records considered classes?

It's simply that Delphi introduced static methods to records using the same
syntax as for classes and operators followed along.

We've simply followed that along as we would have needed to do so at least
for mode Delphi anyway and the implementor of advanced records decided not
to deviate from that.

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to