On 10/1/08 7:24 PM, Ondřej Čada said:
>> I know the above is an example, but... it is generally preferable to
>> not use setter accessors in init, it is better to set the ivars
>> directly:
>
>There was a pretty heated debate once.
>
>Not to repeat all the arguments of both sides,
:)
> I daresay now with
>Objective C 2.0 we can safely conclude that the _current_
>recommendation is the very opposite of what you are pointing out: we
>_should_ use setters in init (and dealloc and anywhere else).
Well, I am not a language lawyer, but the link I posted was from a month-
old discussion on the Cocoa list. You might want to read it all. The
conclusion, including from Apple employees, was to set the ivars
directly. But your point about the 64bit ABI is a good one. I guess
this is a complex issue...
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden