[fpc-devel] Wrong docs: not initialized global variables
Sven Barth
pascaldragon at googlemail.com
Thu Apr 5 17:10:40 CEST 2018
Martok <listbox at martoks-place.de> schrieb am Do., 5. Apr. 2018, 16:29:
> > From this rule, it follows that every variable must be explicitly
> initialized [...]
> > Be it with an assignment or an 'var a: type = someonstant;'.
> ... for which the syntactic sugar was rejected not two weeks ago.
>
Did we read the same thread?
"var a: type = x" is already supported for both global and local variables
and Florian agreed that there is no reason to restrict that only to a
single variable (but only with the same value for each).
Okay, Jonas disagreed, but personally am in favor of allowing that as well.
Regards,
Sven
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20180405/d593d74f/attachment.html>
More information about the fpc-devel
mailing list