Book a Demo

Author Topic: classifier.metatype = null in shapescript  (Read 3518 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
classifier.metatype = null in shapescript
« on: January 08, 2010, 06:25:13 pm »
In a shapescript, the list of properties includes:
  • classifier
  • classifier.alias
  • classifier.metatype
  • classifier.name
  • classifier.stereotype
Of these, classifier and classifier.name return the same value (so one is, presumably, redundant)

However of much more significance is that classifier.metatype returns nothing and, therefore, can't be used to test against.

Steps:
Create a ShapeScript consisting of printlns for the above properties

Observe classifier and classifier.name return the same value, and that classifier.metatype returns nothing.
Reported,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!