Re: Garbage collector vs variable lifetime
Re: Garbage collector vs variable lifetime
- Subject: Re: Garbage collector vs variable lifetime
- From: j o a r <email@hidden>
- Date: Wed, 11 Jun 2008 08:49:59 -0700
On Jun 11, 2008, at 12:29 AM, Jim Puls wrote:
For that matter, it may be worth pointing out John's confusion
between "sloppy" and "incorrect". He makes a decent point that
returning a mutable object when the method definition specifies an
immutable one is sloppy and, indeed, fraught with peril.
Do you feel the same way about passing a (char *) to a method that
takes a (const char *)?
I think that it's perfectly reasonable to expect the receiver of the
piece of data, or object, that you hand over to respect the basic
restrictions of that type.
j o a r
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden