On 26 May 2014, at 11:04, Michael Schnell wrote: > I found out that I need to add "static" to the "get" class procedure to allow > it's usage in a "class property". > > Sorry for the noise :-[ > > If fact I don't understand what the additional "static" is necessary. I was > of the op pinion that class procedures are static, anyway. > > Can somebody clarify ? >
A `Class Procedure/Function XXX;` has a hidden parameter that points to the classtype. A `Class Procedure/Function XXX; static;` doesn't have this hidden parameter. -- Ewald _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
