• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: default parameters in procs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: default parameters in procs
      • From: Chris Espinosa <email@hidden>
References: 
 >default parameters in procs (From: Rob Crawford <email@hidden>)
 >Re: default parameters in procs (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Re: [FAQ] Omit the "Development" folder in Xcode 2.2
  • Next by Date: Java Error Messages
  • Previous by thread: Re: default parameters in procs
  • Next by thread: Re: default parameters in procs
  • Index(es):
    • Date
    • Thread