Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321310 - Variable loss with sub-scopes
Summary: Variable loss with sub-scopes
Status: CLOSED FIXED
Alias: None
Product: Acceleo
Classification: Modeling
Component: Core (show other bugs)
Version: 3.0.0   Edit
Hardware: PC Windows 7
: P3 major
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-30 05:28 EDT by Laurent Goubet CLA
Modified: 2011-04-06 07:49 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Goubet CLA 2010-07-30 05:28:40 EDT
Something like this :

[template public generate(l : Library)]
  [for (l : Book | l.books)]
  [/for]
  [l.books/]
[/template]

Should compile ... yet the "[l.books/]" expression cannot compile because it "doesn't recognize the l variable".
Comment 1 Stephane Begaudeau CLA 2011-04-06 07:49:46 EDT
The Acceleo Parser will now have the same variable mechanism as the engine with a deque to handle the different variables in the different scopes during the parsing. Several unit tests have also been contributed to ensure the non regression. The fix has been contributed on HEAD and it will be available in Acceleo 3.1.0M7