Hi,
the method ensureClassesAndNamespaces Invoke "parentScope:" on a class. ensureClassesAndNamespaces <menuItem: 'Ensure Classes and Namespaces' category: 'Utilities'> self allMethods do: [ :each | each parentType isNil ifTrue: [ each parentType: self unknownFAMIXClass ] ]. self allClasses do: [ :each | each parentScope isNil ifTrue: [ each parentScope: self unknownFAMIXNamespace ] ] Now FAMIXType contains the method "parentScope" implemented as: parentScope "Polymorphic alias to mimic GlobalVariable#parentScope and similar" ^ self container I believe that in the method ensureClassesAndNamespaces we should use the method "container:" instead of "parentScope:" What do you think? Cheers, Fabrizio _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Yes.
Doru On 11 Apr 2012, at 18:23, Fabrizio Perin wrote: > Hi, > the method ensureClassesAndNamespaces Invoke "parentScope:" on a class. > > ensureClassesAndNamespaces > <menuItem: 'Ensure Classes and Namespaces' category: 'Utilities'> > > self allMethods do: [ :each | > each parentType isNil ifTrue: [ > each parentType: self unknownFAMIXClass ] ]. > self allClasses do: [ :each | > each parentScope isNil ifTrue: [ > each parentScope: self unknownFAMIXNamespace ] ] > > Now FAMIXType contains the method "parentScope" implemented as: > > parentScope > "Polymorphic alias to mimic GlobalVariable#parentScope and similar" > > ^ self container > > I believe that in the method ensureClassesAndNamespaces we should use the method "container:" instead of "parentScope:" > > What do you think? > > Cheers, > Fabrizio > _______________________________________________ > Moose-dev mailing list > [hidden email] > https://www.iam.unibe.ch/mailman/listinfo/moose-dev -- www.tudorgirba.com "Every thing has its own flow." _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
ok, it is done.
Fabri 2012/4/12 Tudor Girba <[hidden email]> Yes. _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Thanks.
Doru On 12 Apr 2012, at 21:54, Fabrizio Perin wrote: > ok, it is done. > > Fabri > > 2012/4/12 Tudor Girba <[hidden email]> > Yes. > > Doru > > > On 11 Apr 2012, at 18:23, Fabrizio Perin wrote: > > > Hi, > > the method ensureClassesAndNamespaces Invoke "parentScope:" on a class. > > > > ensureClassesAndNamespaces > > <menuItem: 'Ensure Classes and Namespaces' category: 'Utilities'> > > > > self allMethods do: [ :each | > > each parentType isNil ifTrue: [ > > each parentType: self unknownFAMIXClass ] ]. > > self allClasses do: [ :each | > > each parentScope isNil ifTrue: [ > > each parentScope: self unknownFAMIXNamespace ] ] > > > > Now FAMIXType contains the method "parentScope" implemented as: > > > > parentScope > > "Polymorphic alias to mimic GlobalVariable#parentScope and similar" > > > > ^ self container > > > > I believe that in the method ensureClassesAndNamespaces we should use the method "container:" instead of "parentScope:" > > > > What do you think? > > > > Cheers, > > Fabrizio > > _______________________________________________ > > Moose-dev mailing list > > [hidden email] > > https://www.iam.unibe.ch/mailman/listinfo/moose-dev > > -- > www.tudorgirba.com > > "Every thing has its own flow." > > > > > > _______________________________________________ > Moose-dev mailing list > [hidden email] > https://www.iam.unibe.ch/mailman/listinfo/moose-dev > > _______________________________________________ > Moose-dev mailing list > [hidden email] > https://www.iam.unibe.ch/mailman/listinfo/moose-dev -- www.tudorgirba.com "Speaking louder won't make the point worthier." _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Free forum by Nabble | Edit this page |