Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operators ++ cannot be used in SARL #29

Closed
gbasso opened this issue Mar 18, 2014 · 2 comments
Closed

Operators ++ cannot be used in SARL #29

gbasso opened this issue Mar 18, 2014 · 2 comments

Comments

@gbasso
Copy link

gbasso commented Mar 18, 2014

When using nbValues++ or ++nbValues an error occurs:

for ++nbValues:

Invalid number of arguments. The method operator_plus(Object,
   String) is not applicable for the arguments (Integer)

for nbValues++:

The method +() is undefined
@gallandarakhneorg
Copy link
Member

The operator "++" exists in Java, but not in Scala.

The question is: is SARL following more the Java or the Scala syntax?

My opinion is: SARL should be mostly inspired from Scale, but several operators may be added for whose who is coming from Java.

What is your opinion?

@gallandarakhneorg
Copy link
Member

This feature is introduced in Xtext 2.6.0.
See issue #93 to follow the upgrade of SARL for supporting Xtext 2.6.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants