xsharp.eu • "*"
Page 1 of 1

"*"

Posted: Tue Aug 06, 2024 6:14 pm
by ngpollarolo
Ho applicazioni X# con * per segnalare una nota. Con la nuova versione di X# me le segnala con error XS9002: Parser: unexpected input '*'
Ripassare tutta le applicazioni e sostituire tutto con // e' l'unica possibilita' ?

Grazie

Giorgio

Re: "*"

Posted: Tue Aug 06, 2024 6:39 pm
by wriedmann
Ciao Giorgio,
le note di rilascio di X# 2.20 segnalano:
We have added a new compiler option /modernsyntax (#1394). This disables certain legacy features:
- && for line comments
- * at the start of a line for a comment line

Saluti

Wolfgang

Re: "*"

Posted: Tue Aug 06, 2024 7:13 pm
by ngpollarolo
Grazie Wolfgang,

pero' con /modernsyntax marcato o no, non cambia niente: da sempre lo stesso errore

Giorgio

Re: "*"

Posted: Wed Aug 07, 2024 10:14 am
by Chris
Hi Giorgio,

Is it on a Core dialect app? Indeed I see in Core the * comments are disabled, no matter the state of /modernsyntax. Robert, maybe we should make also core respect the /modernsyntax setting, regarding allowing "*" for single line comments?

Re: "*"

Posted: Wed Aug 07, 2024 3:47 pm
by ngpollarolo
Hi Chris,
the application is in Vulcan dialect.

Re: "*"

Posted: Wed Aug 07, 2024 4:56 pm
by robert
Giorgio,

The fact that we were allowing '*' at the start of a line and '&&' for end of line single line comments in the Vulcan dialect, was not compatible with Vulcan.
Vulcan did not allow this.

This was corrected in 2.20 at the same time when we added the /modernsyntax command line option.
We should probably have added to the list of changes in the Version History.

Robert