Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [ATL] possible Bug in ->sortedBy
[ATL] possible Bug in ->sortedBy [message #661241] Wed, 23 March 2011 12:29
Eclipse UserFriend
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: Sun Jul 06 16:11:38 EDT 2025

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

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

Back to the top