[fpc-devel] global property, with getter in other unit
ip at kmiac.ru
Wed Feb 29 02:40:09 CET 2012
28.02.2012 9:11, Martin пишет:
> It needed 3 units,
> accessing Foo in the same unit, in which it is declared (unit2) compiles
> (not tested if it runs...)
You found some bug in the compiler. Property can only be declared inside
a structure but compiler allowed to do this in a unit level.
If this is not some FPC feature unknown to me I will fix it.
More information about the fpc-devel