[fpc-devel] Variable can not be initialized by named constant
Jonas Maebe
jonas.maebe at elis.ugent.be
Sun Mar 1 17:09:43 CET 2009
On 01 Mar 2009, at 16:16, Jonas Maebe wrote:
> On 01 Mar 2009, at 15:58, Alexander Klenin wrote:
>
>> On Mon, Mar 2, 2009 at 00:47, Jonas Maebe
>> <jonas.maebe at elis.ugent.be> wrote:
>>>
>>> This depends on a mode switch. Use {$j-} to turn off the ability
>>> to write to
>>> typed constants. Maybe it's off by default in your version of
>>> Delphi.
>> I know. I argued that it should be off by default in FPC too --
>> in Delphi mode because of compatibility,
>
> It depends on which Delphi you want to be compatible with. In
> general, FPC aims for compatibility with Delphi 7, and at least in
> Kylix 3 (~ Delphi 6.5) the default is {$j+}
Actually, this is wrong: the default in Kylix 3 is {$j-}
Jonas
More information about the fpc-devel
mailing list