Author Topic: Transformation language needs a loop statement  (Read 1026 times)

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • Aren´t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Transformation language needs a loop statement
« on: September 10, 2009, 07:34:50 pm »
Having worked a lot with the transformation templates I found a high need for iterative language constructs to write loop statements.
Actually there is none.
Under linear conditions this is not obvious, it becomes important when using the EXEC_ADD_IN macro which might deliver multiple values eg. as a comma separated list to process. Classifiers eg. might have several tagged values which values are used to process attributes or parent elements.
Actually such a parsing can be done recursively with custom templates I did this yesterday but it is tedious.

So a loop statement would be a rather good idea.

Olive

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: Transformation language needs a loop statement
« Reply #1 on: September 10, 2009, 08:14:48 pm »
Get's my vote!
I also came over situations where this could have been helpful.

Günther

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Transformation language needs a loop statement
« Reply #2 on: September 10, 2009, 09:09:31 pm »
Yes, very much so!

There are some situations where a workaround can be found or another approach produces reasonable results. But sometimes there just does not seem to be a way to get the needed results. Some 'standard' control paradigms should appear in any scripting (or other programming) language. Loop control is certainly one of them.
No, you can't have it!

salayande

  • EA User
  • **
  • Posts: 224
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Transformation language needs a loop statement
« Reply #3 on: September 11, 2009, 04:54:23 am »
Gets my vote too.


Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 6041
  • Karma: +73/-83
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Transformation language needs a loop statement
« Reply #4 on: September 11, 2009, 10:52:10 am »
Absolutely!

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!