I've posted a mcz to http://code.google.com/p/magritte-metamodel/issues/detail?id=7
It uses the description instead of the object in the collection of descriptions already visited

John

On Mon, Oct 11, 2010 at 6:11 AM, Lukas Renggli <renggli@gmail.com> wrote:
That just remembers (in 'previous') and restores the currently
validated object while (in 'object') recursively walking through the
graph (which is a tree in 99% of the cases).

Lukas

On 11 October 2010 12:05, Nick Ager <nick.ager@gmail.com> wrote:
>
>
> On 11 October 2010 10:53, Lukas Renggli <renggli@gmail.com> wrote:
>>
>> > (seen includes: anObject)
>> > ifTrue: [ ^ self ].
>> > anObject isNil
>> > ifFalse: [ seen add: anObject ].
>>
>> That part just tries to avoid to go into recursion if a described
>> object refers to another object that descriptions refer back to the
>> original object. That was requested at some point in the past, but I
>> never dependent on that myself.
>
> I understood that part but don't understand the intent of:
> previous := object. object := anObject.
> aBlock ensure: [ object := previous ]
> _______________________________________________
> Magritte, Pier and Related Tools ...
> https://www.iam.unibe.ch/mailman/listinfo/smallwiki
>



--
Lukas Renggli
www.lukas-renggli.ch
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki



--
http://john-mckeon.us