comp.lang.ada
 help / color / mirror / Atom feed
From: dennison@telepath.com
Subject: Re: Valued procedures
Date: 1999/01/21
Date: 1999-01-21T00:00:00+00:00	[thread overview]
Message-ID: <787gb8$kp2$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 786pfu$1vb$1@nnrp1.dejanews.com

In article <786pfu$1vb$1@nnrp1.dejanews.com>,
  dmitry6243@my-dejanews.com wrote:

> Further, I believe it should be possible to ignore the result of a procedure.
> (Using Ada bindings would be much less painful and produce clearer code if you
> were not forced to declare tonns of dummy variables just to ignore various
> unused results.) So that either

The Ada way to handle this is to overload the procedure with a version that
does not return those results, and in its body call the first (full) routine.
This does add an extra layer to your bindings, but bindings to another
language are almost *always* awkward to use in Ada without adding another
layer. That's what's meant by "thick" bindings.

T.E.D.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




  parent reply	other threads:[~1999-01-21  0:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-21  0:00 Valued procedures dmitry6243
1999-01-21  0:00 ` robert_dewar
1999-01-21  0:00 ` dennison [this message]
1999-01-21  0:00   ` robert_dewar
1999-01-21  0:00     ` dennison
1999-01-25  0:00   ` dmitry6243
1999-01-25  0:00     ` robert_dewar
1999-01-21  0:00 ` Tom Moran
1999-01-21  0:00 ` robert_dewar
1999-01-21  0:00 ` adam
1999-01-22  0:00   ` adam
1999-01-22  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