Arguments Reversed
Fascinatingly, the arguments for the generated code for the create "MinuetoFrame" are reversed when I generate code for this app.
Code: MinuetoFrame(true, 480, 640);
Comments (7)
-
-
reporter Note: My Luna reverses. Mathias' Luna puts the boolean in the middle.
Seems to be an Eclipse version error.
-
The reason the order is random is because the reference to
arguments
in the metamodel is not ordered. This was done, because we provide a mapping from the formal to the actual parameter. However, right now, the order is still used.We should either change it to an ordered reference or the code generator has to convert it to a sequence or ordered set.
-
- changed status to open
We will set the arguments reference to ordered in the metamodel.
-
-
assigned issue to
- changed component to Metamodel
-
assigned issue to
-
- changed status to resolved
Resolved issue
#239: Made Message.arguments ordered such that when accessing it in the code generator using Acceleo a Sequence (or OrderedSet) will be returned by default.In general the idea was to just have a mapping from formal to actual parameter, however, we always use the original ordering, so it makes sense to have it ordered.
→ <<cset 4632ac932d37>>
-
References
#239: Reverts partial change of commit 4632ac9 back. The actual namespace URI needs to be used.→ <<cset 94be23c8b84f>>
- Log in to comment
I used the woven minueto and added that call (it was not there) to an operation in
App
.I get the following code: