[fpc-pascal]typed constants

Michael.VanCanneyt at Wisa.be Michael.VanCanneyt at Wisa.be
Thu Jan 2 17:42:23 CET 2003


On Thu, 2 Jan 2003 Michael.VanCanneyt at wisa.be wrote:

Correction:

> >
> > |procedure Do_It (C, D : Integer);
> > |var
> > |  A : boolean := C = D;
> >
> > shouldn't be allowed for initialization.
>
> Peter was wrong, it is allowed (note the use of '=', not ':='):

I was mistaken here, I failed to note that C and D are function arguments,
while I assumed in my answer that they were constants defined elsewhere.

Thus Peter's original statement is of course correct: this is not supported.

My apologies for any confusion this may have caused.

Michael.





More information about the fpc-pascal mailing list