Re: Future Objective-C changes
Re: Future Objective-C changes
- Subject: Re: Future Objective-C changes
- From: "Clark S. Cox III" <email@hidden>
- Date: Wed, 21 May 2003 11:48:37 -0400
On Wednesday, May 21, 2003, at 10:51 US/Eastern, Marcel Weiher wrote:
Actually I'm "defining" a local variable,
Gosh, this sure looks like a declaration to me, and just strengthens
my point. How can I tell the difference by looking at the code?
How is the code intention-revealing?
void foo()
{
//These are all defining local variables:
int i;
float f;
MyClass c;
}
If you are going to be anal about terminology, I suggest you get it
right first. I have never ever heard anyone refer to "defining" a
local variable, though that doesn't mean it has never happened.
From the C standard:
[#5] A declaration specifies the interpretation and
attributes of a set of identifiers. A definition of an
identifier is a declaration for that identifier that:
-- for an object, causes storage to be reserved for that
object;
-- for a function, includes the function body;
--
http://homepage.mac.com/clarkcox3/
email@hidden
Clark S. Cox, III
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.