|
Re: Overriding methods: msg#00077lang.smalltalk.squeak.beginners
Hi Blake, You should *never* *never* *never* override #basicNew! If fact, never override any #basic* methods. If you override them, then you can't get at them anymore. At some point you must actually create a new object, and the only way you can do this (well, the only reasonable way) is to eventually send #basicNew. Of course #new does this for you, so if you override #new, or provide another way of creating instances, then that's where you will send #basicNew. Maybe if you describe your problem, it would be easier to suggest a reasonable way of doing it. - on On Jan 20, 2008, at 10:45, Blake wrote: Hey, all:
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Overriding methods, Blake |
|---|---|
| Next by Date: | Morphic - How to animate without defining #step ?, Oscar Nierstrasz |
| Previous by Thread: | Overriding methods, Blake |
| Next by Thread: | Re: Overriding methods, johnps11 |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |