FAMIXClass do not understand parentScope:

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

FAMIXClass do not understand parentScope:

Fabrizio Perin-3
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
Reply | Threaded
Open this post in threaded view
|

Re: FAMIXClass do not understand parentScope:

Tudor Girba-2
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
Reply | Threaded
Open this post in threaded view
|

Re: FAMIXClass do not understand parentScope:

Fabrizio Perin-3
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
Reply | Threaded
Open this post in threaded view
|

Re: FAMIXClass do not understand parentScope:

Tudor Girba-2
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