• 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
Method call args order
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Method call args order


  • Subject: Method call args order
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Mon, 25 Sep 2006 17:11:47 +0200

Hello,

I have problems with this function call:

int i=0;
printf("Format %i, %i\n", i++, i++);

When i compile it for Intel platform the output is ‘Format: 1, 0' but if i compile it for ppc the output is 'Format: 0, 1'.

More generaly, if I call a function with dynamic arguments, arguments are resolved in reverse order on Intel and in natural order on PPC.

Is it a gcc expected behaviours or should i report a bug?

_______________________________________________
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: Method call args order
      • From: Paul Walmsley <email@hidden>
  • Prev by Date: Re: Code completion for STL class members
  • Next by Date: Re: Method call args order
  • Previous by thread: Re: Build settings and ACTION.
  • Next by thread: Re: Method call args order
  • Index(es):
    • Date
    • Thread