|
Re: Accessors: msg#00090lang.smalltalk.squeak.beginners
On Sun, 11 Mar 2007 18:46:00 -0800, Jerome Peace <peace_the_dreamer@xxxxxxxxx> wrote: However: Since I want it empty, not gone, I'm doing this: myCollection := OrderedCollection new. On accessors versus raw IVars. its a matter of Yeah, I guess. I've always tried to keep the object as close to a client of itself as I can but that's a decent rule of thumb. Your probably about ready for Kent Beck's book I didn't find it that inspiring on a browse, but I'll check it out. If you try to do the "simplest thing that might I guess that works pretty painlessly. Go reread the comment for #removeAll I believe you Actually, it does, as long as I create an identity copy of the collection to pass as the parm. Try: This looks like something I've seen often in other languages, where the iterator ends up missing items because it's changing as it goes. Hard for me to believe this is a bug, but that's what it looks like to me. ===Blake===
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Accessors, Jerome Peace |
|---|---|
| Next by Date: | Re: Populate a new array., Blake |
| Previous by Thread: | Accessors, Jerome Peace |
| Next by Thread: | Morphic event-handling confusion, Max OrHai |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |