Re: Properly writing an Init method
Re: Properly writing an Init method
- Subject: Re: Properly writing an Init method
- From: Ondra Cada <email@hidden>
- Date: Wed, 17 Jul 2002 22:37:17 +0200
On Wednesday, July 17, 2002, at 08:24 , Julian Barkway wrote:
The above discussion is very interesting but there's also another point
in the example code. I have often wondered about the merits of 'self =
[super init]'. Surely this means that 'self' effectively becomes typed
to the superclass rather than the class itself?
'Course not. This is dynamic type system, not a static one.
My own feeling is that, other than in exceptional circumstances,
assigning anything to 'self' is not a good idea. Anyone care to comment?
Very true, but this is exactly the exceptional circumstance.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.