[fpc-devel] Multiple variable initialization
Michael Van Canneyt
michael at freepascal.org
Sat Mar 24 15:41:15 CET 2018
On Sat, 24 Mar 2018, Ondrej Pokorny wrote:
> Is there a reason why multiple variable initialization is forbidden?
>
> program Test;
> var
> A: Integer = 0; // allowed
> B, C: Integer = 0; // not allowed
I think this is confusing to read.
Are B and C both initialized, or only B ?
Javascript also does not allow this, I think, and for once with good reason.
Michael.
More information about the fpc-devel
mailing list