From: Chris Morgan <mihalis@ix.netcom.com>
Subject: Re: renaming Interfaces.Java.Ada_To_Java_String to the + operator
Date: 1998/01/11
Date: 1998-01-11T08:14:16-06:00 [thread overview]
Message-ID: <871zyej2sg.fsf@ix.netcom.com> (raw)
In-Reply-To: dewar.884489205@merv
dewar@merv.cs.nyu.edu (Robert Dewar) writes:
>
> Terry asks
>
> <<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.
> >>
>
> This is an old, old idea (the use of unary + as a reasonably un-noisy
> conversion operator). Jean Ichbiah was always a fan of this idea, which
> I think was firmly in mind at the time of the original Ada design.
>
In the Intermetrics X11 and Motif bindings there is a generic &
operator which is used to approximate the variable argument list C
functions in the original interface, allowing you to write stuff like
this :
Button1 := Xt.Intrinsic.XtVaCreateManagedWidget(
"redraw", Motif.Pushb.xmPushButtonWidgetClass_obj, Form ,
Stdarg.Empty & Motif.xmstrdefs.XmNlabelString & label &
Motif.Xmstrdefs.Xmntopattachment &
Motif.Xm.Xmattach_Form &
Motif.Xmstrdefs.Xmntopoffset & 2 &
Motif.Xmstrdefs.Xmnleftattachment &
Motif.Xm.Xmattach_Form &
Motif.Xmstrdefs.Xmnleftoffset & 2 &
Nulst);
Whilst I'm not complaining this is elegant it reads close enough to
the C that it's reasonably comprehensible to experience C/Motif
programmers. Once I got the hang of it was fine. I thought Mitch did a
good job with this.
Chris
--
Chris Morgan <mihalis at ix.netcom.com>
"I'm considering throwing myself out of the window. It
wouldn't do me much damage because we're on the ground
floor, but it might make for a bit of variety." - Lizzy Bryant
next prev parent reply other threads:[~1998-01-11 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 ` Nick Roberts
1998-01-13 0:00 ` Stephen Leake
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 [this message]
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 ` Robert Dewar
1998-01-14 0:00 ` Anonymous
1998-01-14 0:00 ` Robert Dewar
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-12 0:00 ` Tucker Taft
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox