[fpc-pascal] Extended property can't have default value?

Jonas Maebe jonas.maebe at elis.ugent.be
Mon Oct 6 15:28:44 CEST 2008


On 06 Oct 2008, at 12:48, Graeme Geldenhuys wrote:

> Why is the following not allowed in a class declaration?
>
>    property Increment: extended read FIncrement write SetIncrement  
> default 1.0;

Because default values are stored in a 32 bit location inside the  
compiler. I have no idea what the reason for this is, how Delphi does  
this and what it allows, whether this not only a matter of the  
compiler but also of the rtti, ...

> How can I overcome this issue?

You cannot.


Jonas



More information about the fpc-pascal mailing list