[fpc-devel] global property, with getter in other unit

Hans-Peter Diettrich DrDiettrich1 at aol.com
Wed Feb 29 14:13:08 CET 2012


Paul Ishenin schrieb:

> 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.

AFAIK unit-properties are an intentional FPC extension over Delphi.

I already used it for debugging purposes, replacing global variables by 
properties and setting an breakpoint in the setter :-)

DoDi




More information about the fpc-devel mailing list