[fpc-devel] Multiple variable initialization
Ondrej Pokorny
lazarus at kluug.net
Sat Mar 24 18:05:03 CET 2018
On 24.03.2018 16:51, Florian Klaempfl wrote:
> 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.
Good to know there's somebody with the same point-of-view. Thanks :)
Ondrej
More information about the fpc-devel
mailing list