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
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel