Code reserved keyword in VO dialect ?

This forum is meant for questions and discussions about the X# language and tools
Post Reply
User avatar
baramuse
Posts: 91
Joined: Tue Nov 29, 2022 8:31 am
Location: France

Code reserved keyword in VO dialect ?

Post by baramuse »

Hi everyone,

we had an XSharp project started with the Vulcan dialect.
I wanted to update the project configuration and set it to VO but I now have a compilation error.
It seems that VO dialect does not allow "Code" as a class member name ?
The issue is that I can't rename the field as it is part of a deployed SOAP API.
Is there a way around or should I stick to the Vulcan dialect ?

Code: Select all

Severity	Code	Description	Project	File	Line	Suppression State
Error	XS9002	Parser: unexpected input 'Code'	Classes Publiques.prg	331	

Code: Select all

CLASS TableCodifElement
// Element d'une table de codification
  PUBLIC Code    AS STRING
...
END CLASS
User avatar
robert
Posts: 4473
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Code reserved keyword in VO dialect ?

Post by robert »

Code is the 4 letter abbreviation of CodeBlock.
If you prefix the name with @@ then it is accepted.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
Post Reply