Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » [ATL] EMFTVM: Can only assign to model element features or helper attributes
[ATL] EMFTVM: Can only assign to model element features or helper attributes [message #1047452] Tue, 23 April 2013 04:13 Go to next message
Gunnar Arndt is currently offline Gunnar Arndt
Messages: 57
Registered: June 2012
Member
When switching from atl2010 to emftvm as the atlcompiler, I get the error message 'Can only assign to model element features or helper attributes' when assigning a local variable in a called rule. That worked with the other compiler no problem; why is that? I'm trying to find a way to work around that, as one of the places where it happens is critical to my code...
Re: [ATL] EMFTVM: Can only assign to model element features or helper attributes [message #1047530 is a reply to message #1047452] Tue, 23 April 2013 06:43 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis Wagelaar
Messages: 131
Registered: September 2012
Senior Member

Op 23-04-13 10:13, Gunnar Arndt schreef:
> When switching from atl2010 to emftvm as the atlcompiler, I get the error
> message 'Can only assign to model element features or helper attributes' when
> assigning a local variable in a called rule. That worked with the other
> compiler no problem; why is that? I'm trying to find a way to work around
> that, as one of the places where it happens is critical to my code...

That's because the compiler doesn't support it (yet). You should indeed be
able to assign to local variables in the imperative part, so you may file a
bug on this.

In the mean time, you can work around the issue by defining a helper attribute
instead of a local variable.

Kind regards,
Dennis


Cheers,
Dennis
Re: [ATL] EMFTVM: Can only assign to model element features or helper attributes [message #1047536 is a reply to message #1047452] Tue, 23 April 2013 06:51 Go to previous messageGo to next message
Gunnar Arndt is currently offline Gunnar Arndt
Messages: 57
Registered: June 2012
Member
I've done that, seems to work (at least, it compiles now correctly - I can't run it yet, as stated in another thread).
Re: [ATL] EMFTVM: Can only assign to model element features or helper attributes [message #1047883 is a reply to message #1047536] Tue, 23 April 2013 15:52 Go to previous message
Dennis Wagelaar is currently offline Dennis Wagelaar
Messages: 131
Registered: September 2012
Senior Member

This issue is now tracked in bugzilla:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=406372

Dennis


Cheers,
Dennis
Previous Topic:How to combine ATL project with java project
Next Topic:serialisation
Goto Forum:
  


Current Time: Wed Apr 23 20:50:23 EDT 2014

Powered by FUDForum. Page generated in 0.02156 seconds