[Tutor] Tutor Digest, Vol 33, Issue 67

Alan Gauld alan.gauld at btinternet.com
Fri Nov 17 10:00:51 CET 2006


"Danny Yoo" <dyoo at hkn.eecs.berkeley.edu> wrote

>> Note that this call will create a new name list inside the 
>> recursive
>> call. You probably need to do:
>>
>>           name += ListRegistryKeys(item)
>
>
> Mutating the list while iterating over it is possibly bad.

I'd go so far as to say almost certainly bad!
Oops, well caught Danny, apologies to the OP..

Alan G. 




More information about the Tutor mailing list