[fpc-devel] Multiple variable initialization

Florian Klaempfl florian at freepascal.org
Sat Mar 24 16:51:40 CET 2018


Am 24.03.2018 um 11:46 schrieb Ondrej Pokorny:
> Is there a reason why multiple variable initialization is forbidden?
> 
> program Test;
> var
>   A: Integer = 0;    // allowed
>   B, C: Integer = 0; // not allowed
> begin
> end.
> 
> Will a patch be applied that allows it?

As the first one is supported, I see no logical reason the second
shouldn't be supported, of course assigning 0 to B and C.



More information about the fpc-devel mailing list