Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
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
Eclipse UserFriend
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
Eclipse UserFriend
This issue is now tracked in bugzilla:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=406372

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


Current Time: Wed Jul 23 14:36:00 EDT 2025

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

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

Back to the top