[fpc-devel] Delphi anonymous methods

Sven Barth pascaldragon at googlemail.com
Tue Mar 5 14:02:19 CET 2013


Am 05.03.2013 12:44, schrieb Michael Fuchs:
> Am 05.03.2013 10:25, schrieb Michael Van Canneyt:
>>> I've seen this before, and always been baffled by this. How can you
>>> increment a "constant"? If you can, it is then a variable, no?
>>
>> A leftover from the TP days. A typed constant acts as an initialized
>> variable.
>>
>> You can disable this construct with:
>> http://www.freepascal.org/docs-html/prog/progsu42.html
>
> This should be the default in ObjFpc mode.
>
Two words: backwards compatibility.

Regards,
Sven



More information about the fpc-devel mailing list