[fpc-pascal] Next language feature for pas2js...
Mattias Gaertner
nc-gaertnma at netcologne.de
Tue May 1 12:00:47 CEST 2018
On Tue, 1 May 2018 10:52:32 +0200 (CEST)
Michael Van Canneyt <michael at freepascal.org> wrote:
>[...]
> > Note that the 'var' is a workaround till eventually pas2js supports
> > external 'const' without expression.
>
> Well, I specially did not mention this, because I consider it a dirty hack.
> a var doesn't protect you from assigning to it (it's a variable, after all).
Trunk now supports external const. :)
> One preferably shouldn't teach people bad habits. :)
Good point.
Mattias
More information about the fpc-pascal
mailing list