2016-03-07 15:30 GMT+01:00 Michael Van Canneyt <mich...@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
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to