comp.lang.ada
 help / color / mirror / Atom feed
From: stt@houdini.camb.inmet.com (Tucker Taft)
Subject: Re: renaming Interfaces.Java.Ada_To_Java_String to the + operator
Date: 1998/01/12
Date: 1998-01-12T00:00:00+00:00	[thread overview]
Message-ID: <EMnKy7.LyJ.0.-s@inmet.camb.inmet.com> (raw)
In-Reply-To: 01bd1e34$1632c2c0$24326489@Westley-PC.calspan.com


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




      parent reply	other threads:[~1998-01-12  0:00 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-11  0:00 renaming Interfaces.Java.Ada_To_Java_String to the + operator Terry J. Westley
1998-01-10  0:00 ` Robert Dewar
1998-01-10  0:00   ` Matthew Heaney
1998-01-13  0:00     ` Tom Moran
1998-01-13  0:00       ` Stephen Leake
1998-01-13  0:00       ` Stephen Leake
1998-01-13  0:00         ` Nick Roberts
1998-01-13  0:00       ` Robert Dewar
     [not found]       ` <En3Cxz.7HD@world.std.com>
1998-01-20  0:00         ` Robert Dewar
1998-01-21  0:00           ` Stephen Leake
1998-01-22  0:00           ` Robert Dewar
1998-01-22  0:00             ` Anonymous
     [not found]               ` <dewar.885498969@merv>
1998-01-23  0:00                 ` Tom Moran
1998-01-23  0:00                 ` Geert Bosch
1998-01-23  0:00             ` Anonymous
1998-01-24  0:00             ` Tucker Taft
1998-01-11  0:00   ` Chris Morgan
1998-01-11  0:00     ` Robert Dewar
1998-01-11  0:00       ` Chris Morgan
1998-01-11  0:00         ` Robert Dewar
1998-01-11  0:00           ` Chris Morgan
1998-01-11  0:00             ` Robert Dewar
1998-01-11  0:00 ` Nick Roberts
1998-01-11  0:00   ` Brian Rogoff
1998-01-13  0:00     ` Terry J. Westley
1998-01-14  0:00       ` Robert Dewar
1998-01-15  0:00         ` Nick Roberts
1998-01-15  0:00           ` Robert Dewar
1998-01-16  0:00           ` Michael F Brenner
1998-01-16  0:00             ` Nick Roberts
1998-01-16  0:00               ` Robert Dewar
1998-01-17  0:00                 ` miniscences Nick Roberts
1998-01-17  0:00                   ` miniscences Robert Dewar
1998-01-19  0:00                 ` renaming Interfaces.Java.Ada_To_Java_String to the + operator Anonymous
1998-01-25  0:00                   ` Matthew Heaney
1998-01-16  0:00             ` Robert Dewar
1998-01-11  0:00   ` Robert Dewar
1998-01-14  0:00     ` Anonymous
1998-01-14  0:00       ` Robert Dewar
1998-01-12  0:00 ` Tucker Taft [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox