Re: Setter Declaration for Scalar, with @property --> Silent Runtime Failure
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