[fpc-devel] class constants
Jonas Maebe
jonas.maebe at elis.ugent.be
Tue Oct 20 14:11:09 CEST 2009
On 19 Oct 2009, at 19:19, Alexander Klenin wrote:
> On Tue, Oct 20, 2009 at 01:12, Jonas Maebe
> <jonas.maebe at elis.ugent.be> wrote:
>> Except if you want to use the constant in another constant
>> expression (which
>> is not possible with a function, inlined or not).
>
> Which, by the way, is another limitation that would be good to lift:
No, this would cause completely unpredictable behaviour regarding
whether or not a function can be used inside a const statement (since
the compiler will never contain a full emulator that is able to
interpret any arbitrary Pascal function).
Jonas
More information about the fpc-devel
mailing list