• 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
Passing by reference vs Passing by value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Passing by reference vs Passing by value


  • Subject: Passing by reference vs Passing by value
  • From: Arthur Clemens <email@hidden>
  • Date: Mon, 30 Sep 2002 21:56:10 +0200

In the various Cocoa code I encounter I never see passing by reference with values like ints or floats.
I learned that Java does not support passing by reference, but Objective-C should. And technically it works, I found out, although the code becomes somewhat less readable. Passing by reference should speed things up a bit, I would think.
Is there an obivous reason not to pass by reference?

Arthur Clemens
_______________________________________________
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.

  • Follow-Ups:
    • Re: Passing by reference vs Passing by value
      • From: "Clark S. Cox III" <email@hidden>
References: 
 >Re: Subclassing NSTypesetter: fragment/used rects (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: [newbie] Handling a preferences window
  • Next by Date: Re: linking in private non-Framework libraries
  • Previous by thread: Re: Subclassing NSTypesetter: fragment/used rects
  • Next by thread: Re: Passing by reference vs Passing by value
  • Index(es):
    • Date
    • Thread