Is there a real place where I can see the changes in magritte3.0?
I wonder why we use something that does not even have a web site and a little log of
changes.
I found
http://forum.world.st/Magritte-3-td4401357.html and it looks sad to me… when I see
the time I spend documenting frameworks.
Stef
On Apr 9, 2012, at 12:22 PM, Stéphane Ducasse wrote:
I'm totally confused by magritte…
So I can fix Moose somehow but I do not know how to manage it.
I defined
FM3Element class>>magritteDescriptionName
<magritteDescription>
^ MAStringDescription new
accessor: #name;
default: 'noname';
label: 'Name';
priority: 100;
beRequired;
yourself
FM3PropertyDescription class>>magritteDescriptionType
<magritteDescription>
^ MASingleOptionDescription new
accessor: #type;
label: 'Type';
priority: 300;
default: FM3 boolean;
beRequired;
options: [ {FM3 number . FM3 string . FM3 boolean} ] magritteDynamicObject;
" reference: MAClassDescription new;"
yourself
and now
Pragma
allNamed: MAPragmaBuilder magritteDescriptionPragma
from: FM3Element to: Object.
-> #()
because the description are defined on class side.
I could define the descriptions on the instance side but to me it does not make sense.
Pragma
allNamed: MAPragmaBuilder magritteDescriptionPragma
from: FM3Element class to: Object class.
-> an Array(<magritteDescription>) ;)
and
Pragma
allNamed: MAPragmaBuilder magritteDescriptionPragma
from: FM3PropertyDescription class to: Object class. an
Array(<magritteDescription> <magritteDescription>)
Now the definition of uniqueDescriptionSelectors: or the build: method of
MAPragmaBuilder
look bogus to me. Either it should take a class as argument or move the class level.
Is anObject a class?
may be the correct definition is
Object>>basicMagritteDescription
^ MAPragmaBuilder for: self class
instead of
basicMagritteDescription
^ MAPragmaBuilder for: self
Then options: [ {FM3 number . FM3 string . FM3 boolean} ] magritteDynamicObject;
Apparently there is no MADynamicObject anymore…..
So can use the old version of magritte for moose because this is boring to run after bugs
like that
Stef
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev