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

2008-10-11 Thread Zaher Dirkey
Empty String it is a default value. What if increase to size of default value to int64 so we can add default value to Currency/Double properties, and that make my exported XML more small, and it is still compatible with Delphi. ___ fpc-pascal maillist

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

2008-10-06 Thread Jonas Maebe
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

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

2008-10-06 Thread Joao Morais
Graeme Geldenhuys wrote: Why is the following not allowed in a class declaration? property Increment: extended read FIncrement write SetIncrement default 1.0; yet this is... property Increment: integer read FIncrement write SetIncrement default 1; What would be the major obstacle

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

2008-10-06 Thread Michael Van Canneyt
On Mon, 6 Oct 2008, Jonas Maebe wrote: 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

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

2008-10-06 Thread Joao Morais
Jonas Maebe wrote: 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

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

2008-10-06 Thread Graeme Geldenhuys
On Mon, Oct 6, 2008 at 4:13 PM, Michael Van Canneyt [EMAIL PROTECTED] wrote: FPC is 100% Delphi compatible as FPC. Default values for sets are also only allowed for sets that fit in 32-bits. We can change this, but that would require quite some work in the RTTI structures. So do you think

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

2008-10-06 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: On Mon, Oct 6, 2008 at 4:13 PM, Michael Van Canneyt [EMAIL PROTECTED] wrote: FPC is 100% Delphi compatible as FPC. Default values for sets are also only allowed for sets that fit in 32-bits. We can change this, but that would require

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

2008-10-06 Thread Michael Van Canneyt
On Mon, 6 Oct 2008, Graeme Geldenhuys wrote: On Mon, Oct 6, 2008 at 4:13 PM, Michael Van Canneyt [EMAIL PROTECTED] wrote: FPC is 100% Delphi compatible as FPC. Default values for sets are also only allowed for sets that fit in 32-bits. We can change this, but that would require