[fpc-devel] Wrong docs: not initialized global variables
Ondrej Pokorny
lazarus at kluug.net
Thu Apr 12 13:26:38 CEST 2018
On 05.04.2018 17:10, Sven Barth via fpc-devel wrote:
> Martok <listbox at martoks-place.de <mailto: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.
Good to know your opinion.
From what I read the position of rejecting the idea was much stronger
than the support.
Ondrej
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20180412/9aa0f19d/attachment.html>
More information about the fpc-devel
mailing list