Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] possible Bug in ->sortedBy
[ATL] possible Bug in ->sortedBy [message #661241] Wed, 23 March 2011 16:29
Sebastian is currently offline SebastianFriend
Messages: 11
Registered: February 2011
Junior Member
Hello out there,
why is this
entrypoint rule test() {
	do {
		--OK
		Sequence{1,2,3}->sortedBy(x | x).debug();
		--OK
		Sequence{1,2,3}->sortedBy(x | 0 - x ).debug();

		--outch!
		Sequence{1,2,3}->sortedBy(x | if true then x else 0 - x endif).debug();
	}
}
resulting in this output:
Sequence {1, 2, 3}
Sequence {3, 2, 1}
Sequence {1, 1, 1}


If it is not allowed to use such a body inside sortedBy this statement should throw an exception, not return a totally useless result!?

Regards,
Sebastian
Previous Topic:[QVTo] Transformation changes schema
Next Topic:[ATL] Strange behaviour
Goto Forum:
  


Current Time: Fri Apr 26 16:29:13 GMT 2024

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

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

Back to the top