• 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: Setter Declaration for Scalar, with @property --> Silent Runtime Failure
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setter Declaration for Scalar, with @property --> Silent Runtime Failure


  • Subject: Re: Setter Declaration for Scalar, with @property --> Silent Runtime Failure
  • From: Jim Correia <email@hidden>
  • Date: Thu, 20 Nov 2008 19:37:14 -0500

On Nov 19, 2008, at 11:40 PM, Jerry Krinock wrote:

Build and run the above project. No warnings, no errors, no exceptions, but the output logs:

  JunkProps[7449:10b] foo.bar = 0

Remove the old getter declaration under // Whoops, and it's fixed:

  JunkProps[7462:10b] foo.bar = 600

If I change 'bar' to be an NSString* instead of an NSInteger, the extra setter does not cause this problem.

I cannot think of any sensible explanation for this.

This looks like a codegen bug. I can reproduce the problem on both i386 and PPC when compiling with GCC 4.0, but not with GCC 4.2.


Jim

_______________________________________________

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


References: 
 >Setter Declaration for Scalar, with @property --> Silent Runtime Failure (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Difference between "Target" and "Executable" ?
  • Next by Date: Re: Difference between "Target" and "Executable" ?
  • Previous by thread: Setter Declaration for Scalar, with @property --> Silent Runtime Failure
  • Next by thread: Links with ../ and /
  • Index(es):
    • Date
    • Thread