• 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: looks like Intel vs. PowerPC difference
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: looks like Intel vs. PowerPC difference


  • Subject: Re: looks like Intel vs. PowerPC difference
  • From: Sherm Pendley <email@hidden>
  • Date: Thu, 3 Aug 2006 15:05:10 -0400

On Aug 3, 2006, at 2:22 PM, Andrei Tchijov wrote:

Very true. It just that I got bitten by it (I did not assigned initial values to in/out stream).

That was the more generalized problem then.

An object's instance variables are guaranteed to be initialized to zero (or nil, for pointers) by the Objective-C runtime. But no such guarantee is made concerning local variables; Objective-C behaves just like C in that respect.

You should always initialize local variables yourself, to avoid precisely these kinds of problems.

sherm--

Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >looks like Intel vs. PowerPC difference (From: Andrei Tchijov <email@hidden>)
 >Re: looks like Intel vs. PowerPC difference (From: Sherm Pendley <email@hidden>)
 >Re: looks like Intel vs. PowerPC difference (From: Andrei Tchijov <email@hidden>)

  • Prev by Date: Re: NSTableView and End Editing notifications
  • Next by Date: Licensing a cocoa framework ?
  • Previous by thread: Re: looks like Intel vs. PowerPC difference
  • Next by thread: Re: looks like Intel vs. PowerPC difference
  • Index(es):
    • Date
    • Thread