[Cuis-dev] Voiceless regarding behavior of statePointsTo:
Juan Vuletich
juan at cuis.st
Mon Jul 3 07:01:36 PDT 2023
I just used the Morph implementation of that pattern just as an example.
A couple of emails ago you said "I need to search for a parent object".
Then, if each object knows its parent, then the same pattern can be
used, just calling then "parent" instead of owner. This is, iterating
parents without building collections.
This is useful only if your objects also form a tree structure where
every object knows its parent in the tree.
Apologies for not studying your model in detail. Haven't found the time
for that, and so I can only suggest ideas to consider and possibly discard.
HTH,
On 7/3/2023 10:30 AM, Hilaire Fernandes via Cuis-dev wrote:
>
> If I understand correctly what you mean, my situation is a bit
> different as my business objects do not know about their direct owner.
> My objects are model not morph.
>
> Hilaire
>
> Le 03/07/2023 à 14:28, Juan Vuletich a écrit :
>> If you're just looking for a parent object (as you mentioned in
>> another email), you don't need to build the collection at all. See
>> #firstOwnerSuchThat: that ends doing #withAllOwnersDo: . This is how
>> we do that kind of search in Morphic.
> --
> GNU Dr. Geo
> http://drgeo.eu
> http://blog.drgeo.eu
--
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230703/637ae207/attachment.htm>
More information about the Cuis-dev
mailing list