[fpc-devel] Delphi anonymous methods

Michael Fuchs freepascal at ypa-software.de
Tue Mar 5 12:44:13 CET 2013


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.


Michael




More information about the fpc-devel mailing list