• 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: [Somewhat-OT] Unexpected behaviour of variable argument lists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Somewhat-OT] Unexpected behaviour of variable argument lists


  • Subject: Re: [Somewhat-OT] Unexpected behaviour of variable argument lists
  • From: Allan Odgaard <email@hidden>
  • Date: Thu, 16 Sep 2004 15:08:54 +0200

On 16. Sep 2004, at 15:03, j o a r wrote:

Apparently there is something I don't know or understand about what happens to arguments passed to a function/method that accept a variable number of arguments... Can someone please point me to the fine documentation?

Strings are concatenated compile time when white-space/newline delimited, e.g.:
str = "foo" "bar" "fud";
is functionally equivalent to:
str = "foobarfud";



--
http://macromates.com/ ::: TextMate, OS X text editor
http://macromates.com/sigpipe/ ::: Personal weblog about programming


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: [Somewhat-OT] Unexpected behaviour of variable argument lists
      • From: j o a r <email@hidden>
References: 
 >[Somewhat-OT] Unexpected behaviour of variable argument lists (From: j o a r <email@hidden>)

  • Prev by Date: [Somewhat-OT] Unexpected behaviour of variable argument lists
  • Next by Date: Re: [Somewhat-OT] Unexpected behaviour of variable argument lists
  • Previous by thread: [Somewhat-OT] Unexpected behaviour of variable argument lists
  • Next by thread: Re: [Somewhat-OT] Unexpected behaviour of variable argument lists
  • Index(es):
    • Date
    • Thread