On 3/5/2013 04:20, Graeme Geldenhuys wrote:
On 2013-03-04 20:33, Howard Page-Clark wrote:You can simulate this in FPC as well as TP by using a local typed constant. e.g. function GetValue: integer; const value: integer = 0; begin Inc(value); Result:= value; end;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?
yep... i also call all named storage items variables even if they are constants... what else do you call them in a generic sense? ;)
_______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
