Re: How far with accessors?
Re: How far with accessors?
- Subject: Re: How far with accessors?
- From: Ondra Cada <email@hidden>
- Date: Thu, 27 May 2004 21:23:46 +0200
Marco,
On 27.5.2004, at 20:00, Marco Scheurer wrote:
>
So we agree that if you do not presume such things then there's no
>
reason not to use release in dealloc (nor in the setter accessor).
Presumed you meant _auto_release, very definitely.
Well, unless you consider that "a vended object should remain valid in
the scope of the current autorelease pool" is the optimal case to be
aimed for as well as in the conditions reasonably possible, there is
actually a little use of autorelease ;) After all, there's a number of
reference counting APIs without autorelease pools; although I consider
them far inferior to Cocoa since they seem to me pretty inconvenient, I
do agree they can be used quite well... heck, the original NeXTStep API
without even the refcounting was much better than anything other
available at the time (perhaps but for Smalltalk). Autoreleasing is no
sine qua non; it's just a programmer's convenience, which speeds up the
development and decreases the probability of making a mistake; the
price is somewhat less efficiency. That's the way it generally is with
hi-level tools.
---
Ondra Hada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.