Book a Demo

Author Topic: OCL Syntax of EA  (Read 2425 times)

id00797

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
OCL Syntax of EA
« on: May 09, 2007, 09:44:46 pm »
I'm experiencing a small problem with EA OCL Syntax. According to (my understanding of) the OCL Standard, the if construct is an expression. This would allow one to write

result = if x < 0 the 1 else -1 endif

Other OCL Parsers (e.g. Dresden OCL toolkit) allow this syntax. EA, however, does not. So, what is correct. And, if this is a bug in EA, (when) will it be fixed?
« Last Edit: May 09, 2007, 09:45:22 pm by id00797 »