[fpc-devel] global property, with getter in other unit
Paul Ishenin
ip at kmiac.ru
Wed Feb 29 03:37:05 CET 2012
29.02.2012 10:20, Martin wrote:
>> If this is not some FPC feature unknown to me I will fix it.
> http://www.freepascal.org/docs-html/ref/refse24.html#x56-630004.6
>
> questiion is about where the getterr/setter must be defined.
>
> btw, they can not be prefixed
>
> this fails
> property FooSinteger read SomeUnit.GetFoo;
>
> this passes, but fails from 3rd unit
> property FooSinteger read GetFooFromSomeUnit;
Looks like this old feature was not maintained in the compiler since the
intial svn import from cvs.
The code contains various errors which was not noticed since 2005 year like:
procedure property_dec;
begin
...
message(parser_e_resourcestring_only_sg);
This should give an error about resource strings when you have a deal
with a property.
Best regards,
Paul Ishenin
More information about the fpc-devel
mailing list