[fpc-devel] Feature announcement: Record management operators

Maciej Izak hnb.code at gmail.com
Mon Mar 7 15:36:26 CET 2016


2016-03-07 15:30 GMT+01:00 Michael Van Canneyt <michael at freepascal.org>:

>
> What is the need for the (var aFoo: TFoo); ?
>

There is no hidden "self" parameter for class operators. And need to be
consistent with existing operators. Class operators works like (equivalent
method without compiler magic):

class procedure Initialize(var aFoo: TFoo); static;

-- 
Best regards,
Maciej Izak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20160307/a84cf8c0/attachment.html>


More information about the fpc-devel mailing list