comp.lang.ada
 help / color / mirror / Atom feed
From: fjh@cs.mu.oz.au (Fergus Henderson)
Subject: Re: Compiling, binding, and linking an Ada prog. interfaced with C
Date: 1998/08/04
Date: 1998-08-04T00:00:00+00:00	[thread overview]
Message-ID: <6q7hn8$nnk$1@mulga.cs.mu.OZ.AU> (raw)
In-Reply-To: dewar.902213347@merv

dewar@merv.cs.nyu.edu (Robert Dewar) writes:

><<As it happens, both ISE Eiffel and Mercury translate to C.  That's
>probably what prompted us to invent the feature in the first place.
>But the feature can be implemented quite easily even in an implementation
>that does not normally translate to C.
>>>
>
>No surprise! Yes, of course this is easy if you translate to C. But let's
>have an example of implementing this where you do NOT translate into C.

Do you mean where you do not translate this construct to C,
or do you mean where the implementation as a whole does not normally
translate things to C?

Of course for this specific construct you need to implement it by
translation to C.  Asking to implement it otherwise would indeed
be unreasonable.  But there's no reason why an implementation
that normally works by compiling directly to assembler or object files
can't handle occurrences of this specific construct by translation to C.

Would you be satisfied with an example of an implementation that
does not normally translate to C++, but allows interfacing to C++ macros?
I don't have one available right now, but one of the other members of
the Mercury team said he would have a go at implementing this at some
time in the future, and I don't expect that it will take him long to
implement once he gets around to it.

--
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh@128.250.37.3        |     -- the last words of T. S. Garp.




  reply	other threads:[~1998-08-04  0:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-27  0:00 Re:Compiling, binding, and linking an Ada prog. interfaced with C You4818
     [not found] ` <6pi57h$k1h$1@nnrp1.dejanews.com>
1998-07-28  0:00   ` Compiling, " Ronald Ali
1998-07-28  0:00 ` Dr Richard A. O'Keefe
1998-07-29  0:00   ` Fergus Henderson
1998-07-30  0:00     ` Robert I. Eachus
1998-08-01  0:00       ` Robert Dewar
1998-08-02  0:00         ` Fergus Henderson
1998-08-04  0:00           ` Robert Dewar
1998-08-04  0:00             ` Fergus Henderson [this message]
1998-08-03  0:00         ` David Coote
1998-08-03  0:00           ` tedennison
1998-08-02  0:00       ` Fergus Henderson
replies disabled

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