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 <stephan@stack.nl> 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
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



--
www.tudorgirba.com

"Every thing has its own flow"