Article View: comp.lang.objective-c
Article #219Re: Operator overloading
From: Zacharias Beckman
Date: Fri, 21 Dec 1990 20:42
Date: Fri, 21 Dec 1990 20:42
24 lines
1507 bytes
1507 bytes
In article <1990Dec14.155211.6598@mprgate.mpr.ca> murphy@photon.mpr.ca writes: >Does Objective-C support operator overloading? > >Gail Murphy | Voice : (604) 293-5462 >MPR Teltech Ltd. | Fax : (604) 293-5787 >8999 Nelson Way, Burnaby, BC | E-Mail: murphy@mprgate.mpr.ca >Canada, V5A 4B5 | mprgate.mpr.ca!murphy@uunet.uu.net Nope; Objective-C is not capable of overloading per the definition of the word if you are coming from C++. I.e.: Overloading allows multiple functions with the same name to be defined provided their argument lists differ sufficiently for calls to be resolved. (ARM pp. 307). In other words, you can't overload a function, method or operator in Objective-C. It's unfortunate -- I really miss this capability, particularly in method overloading. -- Zacharias J. Beckman | God grant me Serenity to accept things I can't change, Lower Code Dweller | Courage to change those I can, Boss Logic Inc. | and Wisdom to know the difference. uunet!bosslog!zack | --- Sinead O'Conner.
Technical Details
Message-ID:
<191@bosslog.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!uunet!bosslog!zackReferences:
<1990Dec14.155211.6598@mprgate.mpr.ca>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!uunet!bosslog!zack From: zack@bosslog.UUCP (Zacharias Beckman) Newsgroups: comp.lang.objective-c Subject: Re: Operator overloading Message-ID: <191@bosslog.UUCP> Date: 21 Dec 90 20:42:08 GMT References: <1990Dec14.155211.6598@mprgate.mpr.ca> Distribution: na Organization: Boss Logic Inc., Fairfield, Iowa Lines: 24