[fpc-devel] Class property and virtual getter
luiz americo pereira camara
luizmed at oi.com.br
Thu Feb 27 12:40:38 CET 2014
2014-02-27 5:25 GMT-03:00 Sven Barth <pascaldragon at googlemail.com>:
> Am 27.02.2014 04:36, schrieb luiz americo pereira camara:
>
> Is this a bug or by design?
>>
> As Michael said this is by design. If you want to use a non-static class
> procedure you must not use "class property", but only "property" (yes, that
> works).
>
>
Thanks.
Removing class before property compiles. But if i try to access the
property using TSimpleModel.ResourceClient gives the following error:
Error: Only class methods, class properties and class variables can be
referred with class references
Technically there's some obstacle to allow such construct?
Or is as today only to be delphi compatible?
Luiz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20140227/cdcea3d6/attachment.html>
More information about the fpc-devel
mailing list