ParseTreeRewriter tests & behavior

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

Re: ParseTreeRewriter refactoring

Paolo Bonzini
Stephen Compall wrote:
> Paolo Bonzini wrote:
>>     " copy the instance variables (if any) "
>>     1 to: num do: [ :i |
>>         aCopy instVarAt: i put: (self instVarAt: i) copy.
>
> Ah!  For some reason I skimmed over this, assuming there was a deepCopy
> at the end of this line rather than a copy.

No, that would be at risk of infinite loops.

Thanks for this further patch, I understand better the purpose of your
refactoring.

Paolo



_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
12