• 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: overloading operators
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: overloading operators


  • Subject: Re: overloading operators
  • From: Chris Hanson <email@hidden>
  • Date: Thu, 31 Oct 2002 00:32:37 -0600

At 11:51 PM -0600 10/30/02, Michael Willhide wrote:
Am I right in thinking that you can't overload operators in your custom classes in objective-C? If I'm wrong, could someone give me a short code example?

You're right. Operator overloading isn't something you can do in Objective-C, because operators aren't implemented as message sends.

-- Chris

--
Chris Hanson | Email: email@hidden
bDistributed.com, Inc. | Phone: +1-847-372-3955
Making Business Distributed | Fax: +1-847-589-3738
http://bdistributed.com/ | Personal Email: email@hidden
_______________________________________________
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: overloading operators
      • From: Wade Tregaskis <email@hidden>
References: 
 >overloading operators (From: Michael Willhide <email@hidden>)

  • Prev by Date: RE: Better random screensaver
  • Next by Date: Re: Cocoa Books (was New to Cocoa)
  • Previous by thread: overloading operators
  • Next by thread: Re: overloading operators
  • Index(es):
    • Date
    • Thread