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(a)gmail.com> wrote:
On 11 October 2010 10:53, Lukas Renggli <renggli(a)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