Hi Adrian
This is stef typing. I'm looking at the code of sara and I see the
following behavior:
generateEcoreString:aNamespace
|package |
"aNamespace asMetaDescription classes."
package:=aNamespace asMetaDescription.
package acceptMetamodelVisitor: self.
^ rootXmlElement printString.
If we remove the comments the code works, but if we run it like it is
ie package is empty (otherwise it contains the right meta
descriptions).
I think that the design is not good. The programmer should not
guess that
a query is doing something magic in his back. Could you change that?
At the minimum call classes initializeSomething
Stef
Hey Sara,
the issue is fixed, now you can say
SCG.Moose asMetaDescription classes
and get all meta-descriptions of all classes without the annoying
initialize loop.
PS: next week I am in Berlin, I might not have time to fix bugs, but
I am usually available via mail.
cheers,
AA
On 27 Jul 2007, at 15:32 , sellossa(a)ensieta.fr wrote:
hello,
why, when I do: SCG.Moose asMetaDescription, I get sthing different
from when I do: SCG.Moose allClasses do: #asMetaDescription.
^SCG.Moose asMetaDescription
Stef find it terrible!
sara
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch