• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Two arrays sharing the same adress space.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two arrays sharing the same adress space.


  • Subject: Re: Two arrays sharing the same adress space.
  • From: Andy Lee <email@hidden>
  • Date: Mon, 17 Nov 2008 07:58:31 -0500

On Nov 17, 2008, at 1:18 AM, Kyle Sluder wrote:
On Mon, Nov 17, 2008 at 1:03 AM, Stephen J. Butler
<email@hidden> wrote:
2) always use the value returned from an init* method.

This isn't strictly necessary. If you need a singleton object that lives for the duration of your app, for example, there's no reason you can't just alloc/init one and let it go (unless, of course, you're using garbage collection, in which case it might matter). I can't imagine a likely scenario for this outside of misapplication of an idiom, but that doesn't make it illegal to ignore the return value of -init.

I *think* Stephen meant we should use the value returned by the initializer as opposed to the value returned by alloc, not as opposed to ignoring it altogether.


--Andy


_______________________________________________

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


  • Follow-Ups:
    • Re: Two arrays sharing the same adress space.
      • From: Sandro Noel <email@hidden>
References: 
 >Re: Two arrays sharing the same adress space. (From: Scott Ribe <email@hidden>)
 >Re: Two arrays sharing the same adress space. (From: Sandro Noel <email@hidden>)
 >Re: Two arrays sharing the same adress space. (From: Charles Steinman <email@hidden>)
 >Re: Two arrays sharing the same adress space. (From: Sandro Noel <email@hidden>)
 >Re: Two arrays sharing the same adress space. (From: "Stephen J. Butler" <email@hidden>)
 >Re: Two arrays sharing the same adress space. (From: "Kyle Sluder" <email@hidden>)

  • Prev by Date: Opening Ports in Leopard
  • Next by Date: Re: How to implement float min(float x, ...) ?
  • Previous by thread: Re: Two arrays sharing the same adress space.
  • Next by thread: Re: Two arrays sharing the same adress space.
  • Index(es):
    • Date
    • Thread