MooseEntityState

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

MooseEntityState

Stephan Eggermont-3
The only sender of
MooseEntityState>cache: selector initializer: aBlock
        ^self
                propertyAt: selector
                ifAbsentPut: [aBlock cullValue: self entity]

is
MooseEntity>lookUpPropertyNamed: selector computedAs: aBlock
        ^self privateState cache: selector initializer: aBlock

all senders of which in the Moose 5 image are parameterless blocks.

Is anyone depending on the existence of the entity instVar
in MooseDefaultState (and accessors in MooseEntityState)?

When looking at the class comment on MooseEntity, I wonder
why the state has a back link.

Stephan

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: MooseEntityState

Tudor Girba-2
This should not be needed given that the callers to these helper methods should be extensions to the entity. Thus, the entity is available as "self" in the block.

Cheers,
Doru


On Thu, Nov 14, 2013 at 12:09 PM, Stephan Eggermont <[hidden email]> wrote:
The only sender of
MooseEntityState>cache: selector initializer: aBlock
        ^self
                propertyAt: selector
                ifAbsentPut: [aBlock cullValue: self entity]

is
MooseEntity>lookUpPropertyNamed: selector computedAs: aBlock
        ^self privateState cache: selector initializer: aBlock

all senders of which in the Moose 5 image are parameterless blocks.

Is anyone depending on the existence of the entity instVar
in MooseDefaultState (and accessors in MooseEntityState)?

When looking at the class comment on MooseEntity, I wonder
why the state has a back link.

Stephan

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev