"*"

Forum dedicato ai programmatori di X# in lingua italiana – Italian language forum

Moderator: wriedmann

Post Reply
ngpollarolo
Posts: 20
Joined: Mon Feb 29, 2016 3:51 pm
Location: Nicaragua

"*"

Post 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
User avatar
wriedmann
Posts: 3754
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Re: "*"

Post 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
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
ngpollarolo
Posts: 20
Joined: Mon Feb 29, 2016 3:51 pm
Location: Nicaragua

Re: "*"

Post by ngpollarolo »

Grazie Wolfgang,

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

Giorgio
User avatar
Chris
Posts: 4898
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: "*"

Post 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?
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
ngpollarolo
Posts: 20
Joined: Mon Feb 29, 2016 3:51 pm
Location: Nicaragua

Re: "*"

Post by ngpollarolo »

Hi Chris,
the application is in Vulcan dialect.
User avatar
robert
Posts: 4518
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Re: "*"

Post 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
XSharp Development Team
The Netherlands
robert@xsharp.eu
Post Reply