Re: default parameters in procs
Re: default parameters in procs
- Subject: Re: default parameters in procs
- From: Rob Crawford <email@hidden>
- Date: Wed, 7 Dec 2005 12:01:47 -0500
I am using XCode 2.2.
sample code
typedef struct myStruct
{
pascal int (*foo)(double val1=0.0, double val2=1.0);
// more like the above.
} myStruct;
On Dec 7, 2005, at 11:49 AM, Chris Espinosa wrote:
On Dec 7, 2005, at 8:04 AM, Rob Crawford wrote:
Have a structure that has a list or ProcPtr, some of these procs
have default parameters, in CodeWorrier this was legal and would
work as expected, under Xcode/gcc it does like it, is there some
flag that can be set to allow this behavior.
gcc supports by default the C standards for initializers in structs
and default values in formal parameter lists.
Please provide the version number of Xcode that you're using, the
line of code that's getting the error, and the error message, at
the very least.
Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden