User defined operators
Mariano Montone <[email protected]> Thu, 14 Jul 2005 20:04:33 -0300
| Newsgroups | gmane.comp.lang.nice.general |
|---|---|
| Message-ID | <[email protected]> |
Hello I'm new to Nice I like the language (I think it is far better than Java). =BFIs it possible to define new (maybe oveloaded) operators at the user l= evel? I mean, suppose I have two objects such that I can write: objA.equals(objB.plus(objC)); Is it possible to define the operators '+' and '=3D' such that the=20 following is valid? objA =3D objB + objC; What's more, I may want to add an operator '<<' such that I can write: mycol << objA; instead of: mycol.add(objA); Thanks, Marian =09 =09 =09 ___________________________________________________________=20 1GB gratis, Antivirus y Antispam=20 Correo Yahoo!, el mejor correo web del mundo=20 http://correo.yahoo.com.ar=20 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=3D7477&alloc_id=3D16492&op=3Dclic= k