SELF type

If Object defines a virtual type SELF, redefines it automatically in all subclasses. Also checks for some conditions on the declaration of SELF: it must be public, it must not be fixed and it must be declared on Object (or not declared at all). These conditions ensures that its refinements are valid.

The error messages when trying to redefining SELF could be improved. Maybe adding a special case preventing any redef of SELF?

Should I implement this using a phase instead?
le id ici sert a rien. le premier argument de `try_get_mproperty_by_name` sert pour localiser les messages d'erreur

~~~
var mprop = modelbuilder.try_get_mproperty_by_name(nclassdef, self, name)
~~~