discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: operator overloading


From: Ingolf Jandt
Subject: Re: operator overloading
Date: Mon, 06 Mar 2006 23:57:50 +0100

> Can anyone suggest
> how best to simulate operator overloading, which is missing from Objective
> C? I would like to overload operators such as "add" or "multiply." Can I
Operator overloding is "missing" in ObjC as it is strictly speaking not a 
principle of object orientation, but originates from ADT-based languages like 
Ada. (So they might be of choice for you.) But if I understand you correctly 
you can achieve approximately what you want simply by writing methods like 
-(myObject) add: (myObject *) secondAddend; and so on.

Sorry if I am completely missing the point. Seems likely to me.

Ingolf
__________________________________________________________________________
Erweitern Sie FreeMail zu einem noch leistungsstarkeren E-Mail-Postfach!        
        
Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131





reply via email to

[Prev in Thread] Current Thread [Next in Thread]