[fpc-pascal]typed constants
Vinzent Hoefler
JeLlyFish.software at gmx.net
Fri Jan 3 19:56:46 CET 2003
On Thursday 02 January 2003 14:08, Peter Vreman wrote:
[initialized variabels vs. typed constants]
> > And especially in case of (b), why should it not be allowed to use
> > variable parameters as initialization value?
>
> Simpel answer: the current code was already available for the reading
> of typed constants. Only the implicit generation of the assignments
> was needed. It took only 30 minutes to get it working.
That's the whole reason? Simple code reuse? Ok, that's a good one. ;-)
> I don't see the problem there is currently a clear distinction. In
> statements you need to use := for assignment. And in declarations
> (enums,default parameters, typed constants, initialized vars) you
> need to use =.
Ok, if you see it that way, it looks rather ok.
OTOH, the initialization of variables would be just a shortcut for doing
it myself at the beginning of the procedure ..., so it is more like an
assignment than a declaration!?
Vinzent.
--
Human beings were created by water to transport it uphill.
More information about the fpc-pascal
mailing list