|
Re: Re: Recap: How to empty a collection: msg#00123lang.smalltalk.squeak.beginners
On Tue, 19 Feb 2008 15:08:56 -0800, nicolas cellier <ncellier@xxxxxxxxxxx> wrote: Blake a écrit : Proof? None at all. I just have this, by Gulik: "[become:] doesn't work fine. It breaks code that relies on hashes; specifically, a Dictionary elsewhere in yo ur image can start acting screwy if you do a #become: variant that doesn't preserve an object's hash. See #becomeForward>>copyHash:. You would then also be relying on a Squeakish behaviour and your code would become less portable across Sm alltalk dialects. They are also a fantastic way to introduce bugs of various sorts, and can even cause an image to crash (as in, stack trace and exit to the OS). Say, for example, that one of the arguments you pass is accidently nil, true or false? Your image would c ontinue working... for a while." Does this sound like something a newbie should use? No, it does not. ===Blake===
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Recap: How to empty a collection, nicolas cellier |
|---|---|
| Next by Date: | Re: Recap: How to empty a collection, nicolas cellier |
| Previous by Thread: | Re: Recap: How to empty a collection, nicolas cellier |
| Next by Thread: | Re: Recap: How to empty a collection, nicolas cellier |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |