| Summary: | allSubobjects() should not operate on collections | ||
|---|---|---|---|
| Product: | [Modeling] QVTo | Reporter: | Wilbert Alberts <wilbert.alberts> |
| Component: | Engine | Assignee: | Project Inbox <mmt-qvt.operational-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | serg.boyko2011, wilbert.alberts |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Wilbert Alberts
Expression var sm := m->allSubobjects() is the shorthand for the following var sm := m->xcollect(i | i.allSubobjects()) This is due to specification, Section 8.2.2.7 ImperativeIterateExp : " If a property is invoked with "->" symbol and no “bracket” follows, this means that xcollect construct is being used. list->prop; // same as list->xcollect(i | i.prop), the iterator variable is implicit here " |