comp.lang.ada
 help / color / mirror / Atom feed
From: burnsedbw@aol.com
Subject: Re: What's with GNAT?
Date: 1996/12/28
Date: 1996-12-28T00:00:00+00:00	[thread overview]
Message-ID: <19961228205300.PAA19336@ladder01.news.aol.com> (raw)
In-Reply-To: AA4HwmoyZ4@geol.spb.su


Sazonov Cyril <cyril@geol.spb.su> said...

> I suppose you are missing about the _language_, but not _GNAT_. It seems
me
> that the thing is that the reurned result is of Global.Cartesian_Vector
type
> even though the variable Result is of Global.NED_Vector and the type
> conversion is to be done _before_ assignment, perfomed by the result
return.
> So you are to use an intermediate variable to be able to _get_ the
wanted
> result and the cjnvert it. For example:

This is the second reply I received suggesting there is something
syntactically
wrong with conversion of an "out" parameter. However, I believe the LRM
para
6.4.1 (4) clearly states that conversion occurs in _both_ directions. As I
have
implied, this works (quite well) on every compiler I have ever used. I
have never
used GNAT, but I have used at least six other validated (Ada '83)
compilers. For
reasons I will not take time to mention, we consciously chose to avoid
declaring
intermediate variables whenever possible.

But thanks for trying...
-----
 BwB




  reply	other threads:[~1996-12-28  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-12-27  0:00 What's with GNAT? Sazonov Cyril
1996-12-28  0:00 ` burnsedbw [this message]
  -- strict thread matches above, loose matches on Subject: below --
1996-12-30  0:00 Sazonov Cyril
1996-12-26  0:00 BurnsedBW
replies disabled

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