[fpc-devel] Variable can not be initialized by named constant

Alexander Klenin klenin at gmail.com
Sun Mar 1 15:58:52 CET 2009


On Mon, Mar 2, 2009 at 00:47, Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
>> Is rejected by Delphi, but compiled by FPC, which is a compatibility
>> bug in itself.
>
> 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, in FPC mode because it is sane.

>> So how about re-submitting the issue as a feature request?
>
> You can try, but I'm afraid it'll stay open for quite a long time if no one
> also submits a patch.
Of course, this is open source ;-)
Main goal of the present discussion for me is to get sure the request
will not be closed as "won't fix".

-- 
Alexander S. Klenin



More information about the fpc-devel mailing list