Re: Parameter lists
Re: Parameter lists
- Subject: Re: Parameter lists
- From: John Randolph <email@hidden>
- Date: Fri, 7 Nov 2003 18:09:51 -0800
On Nov 6, 2003, at 10:18 PM, John MacMullin wrote:
I have a method in which I am trying to pass multiple parameters as
follows:
- (void)clearScreenFields:(int)sortCheck, (BOOL)redCheck
{
}
I am sending the following:
[self clearScreenFields:clearAndNoSort, redDisplay];}
This is patterned after the Objective-C pocket reference at pages
18-20.
Let's see... According to the grammar:
method-selector:
unary-selector
keyword-selector [ , ... ]
keyword-selector [ , parameter-type-list ]
So, it would appear that John is seeing a compiler bug. As far as I
know, none of the code we write at Apple uses comma separated
parameter-type-lists, but we use varargs in several places.
(+stringWithFormat: being the first one that springs to mind.)
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.