Bram Kuijvenhoven wrote:
>
> The storage specifiers are not explained in the FPC reference manual as
> far as I know, though they are in the syntaxis diagram of course.
Michael?
>
> And somehow FPC allows default values for singles.
... because they have a size of 4 which is required for a def
Peter Vreman wrote:
I don't know the reason why single is allowed. Delphi doesn't allow
default values for single or double.
I looked it up in the Delphi documentation (I should have done that before)
and found out the default directive even has a different meaning from what I
thought :)
I though
> Hi,
>
> Is there a reason why one can't specify a default value for a property of
> type double, or is this a bug? (In the latter case I'll file it as a bug)
>
> Compiler version: 2.0.0, Win32
> OS: Win XP (though I guess that is irrelevant)
>
> Example code:
> ===
> program DoublePropDef
Hi,
Is there a reason why one can't specify a default value for a property of type
double, or is this a bug? (In the latter case I'll file it as a bug)
Compiler version: 2.0.0, Win32
OS: Win XP (though I guess that is irrelevant)
Example code:
===
program DoublePropDefault;
type
TMyClass