Re: Bug or feature?
Re: Bug or feature?
- Subject: Re: Bug or feature?
- From: Craig Altenburg <email@hidden>
- Date: Tue, 14 Feb 2006 13:03:35 -0500
On Feb 14, 2006, at 12:57 PM, M. Carlson wrote:
What number should variable 'fval' have after this is executed?
- (void) doit
{
float fval=0.0;
NSNumber *aNumber=nil;
fval=[aNumber floatValue];
NSLog(@"fval is %f",fval);
}
I'd guess zero. Thats what you generally get from sending a message
to nil.
--M
_______________________________________________
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
_______________________________________________
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