From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3d6ef988ec3a5ef7 X-Google-Attributes: gid103376,public From: stt@houdini.camb.inmet.com (Tucker Taft) Subject: Re: renaming Interfaces.Java.Ada_To_Java_String to the + operator Date: 1998/01/12 Message-ID: #1/1 X-Deja-AN: 315117164 Sender: news@inmet.camb.inmet.com (USENET news) References: <01bd1e34$1632c2c0$24326489@Westley-PC.calspan.com> X-Nntp-Posting-Host: houdini.camb.inmet.com Organization: Intermetrics, Inc. Newsgroups: comp.lang.ada Date: 1998-01-12T00:00:00+00:00 List-Id: Terry J. Westley (westley@calspan.com) wrote: : Does anyone know who's idea it was to rename the : Interfaces.Java.Ada_To_Java_String function to the "+" : operator in the Intermetrics Java bindings? I'm : using the Aonix ObjectAda translator but assume that : the Java class library came from Intermetrics. : Thanks much for this clever little idea. IMHO, it : really improves ease of use and code readability. : Does this idea originate with the Java work at : Intermetrics or does it predate it? This idea has been around for quite a while. : I find the inverse of + useful as well: : function "-" (s : String_Ptr) return String : renames Interfaces.Java.Java_To_Ada_String; : Does anyone think this is a misuse of operator : overloading? As with Robert Dewar, I prefer using "+" for such conversions, independent of direction. Overloading figures it out. I wouldn't want to see "+" used all over the place, but it certainly comes in handy for relatively "trivial" conversions that have to be used in many contexts. : -- : Terry J. Westley, Principal Engineer : Calspan SRL Corp, P.O. Box 400, Buffalo, NY 14225 : westley@calspan.com http://www.calspan.com/ -- -Tucker Taft stt@inmet.com http://www.inmet.com/~stt/ Intermetrics, Inc. Burlington, MA USA