[fpc-pascal] readonly variables
xgelb at xgelb.de
Sat Nov 28 15:46:09 CET 2009
> Not that I am aware of. But for what reason do you want such a behaviour?
I wrote data analysis programs which are very difficult. I change some
lines to optimize a program. Somethimes it is necessary that I will save
a variable after an input because the second setup of the variable is an
error the first is ok.
If I use the bash I can save the variables after an initialisation with
the "readonly" command. At this time it is not possible to reset the
variable. This is very helpfull, because you can avoid an anlysis error
by forcing a program runtime error.
More information about the fpc-pascal