|
Recap: How to empty a collection: msg#00115lang.smalltalk.squeak.beginners
I've been following this debate with some interest, but I think it's gone beyond a noob discussion. Is there a noob answer to this question? There ought to be. I'm sort of leaning toward: Q. How do you empty a collection. A. You don't, you replace it with a new instance. Q. What if you have references to the collection in multiple places? A. Wrap the collection in another class, and reference that. ??
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: How to empty a collection?, Janko Mivšek |
|---|---|
| Next by Date: | Re: [Squeak 0006937]: removeAll: aCollection doesn't do what we expect if aCollection==self, Klaus D. Witzel |
| Previous by Thread: | 1-way #become: ?, itsme213 |
| Next by Thread: | Re: Recap: How to empty a collection, Klaus D. Witzel |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |