Skip to main content


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 08:13 Go to next message
Gunnar Arndt is currently offline Gunnar ArndtFriend
Messages: 82
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 10:43 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 589
Registered: September 2012
Location: Belgium
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 10:51 Go to previous messageGo to next message
Gunnar Arndt is currently offline Gunnar ArndtFriend
Messages: 82
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 19:52 Go to previous message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 589
Registered: September 2012
Location: Belgium
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: Tue Apr 16 06:00:58 GMT 2024

Powered by FUDForum. Page generated in 0.23354 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top