comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@gnat.com
Subject: Re: Multiple pragma Imports
Date: 1998/12/28
Date: 1998-12-28T00:00:00+00:00	[thread overview]
Message-ID: <767249$nbb$1@nnrp1.dejanews.com> (raw)
In-Reply-To: F4LKJL.7z@jvdsys.stuyts.nl

In article <F4LKJL.7z@jvdsys.stuyts.nl>,
  jerry@jvdsys.stuyts.nl (Jerry van Dijk) wrote:
> a) GNAT follows the RM;
> b) GNAT issuing an error if an interfacing pragma matches
     more than one subprogram signature;

That seems a bit confused, we can't issue an error message
for this, since it is perfectly normal. It is not even
right to issue a warning, since it is quite common to use
the same Import for a function and procedure, and perfectly
legitimate (one might almost say a standard idiom for C!)

> c) GNAT having a switch to revert to its old behaviour to
     enable use of current bindings, to be phased out at
     some later date;

Since what GNAT was doing is clearly wrong, this seems a
bad idea. It is either trivial to fix the binding, or not
quite trivial (use renamings), but in the latter case, GNAT
was certainly NOT doing what the programmer intended, so it
is far better to give an error.

I don't think there is any language issue here.
Considerations of upwards compatibility make it impractical
to fix this problem even if you regard it as a problem.

Robert Dewar
Ada Core Technologies

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




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

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-26  0:00 Multiple pragma Imports dewar
1998-12-27  0:00 ` Jerry van Dijk
1998-12-27  0:00   ` Larry Kilgallen
1998-12-27  0:00     ` Jerry van Dijk
1998-12-28  0:00       ` dewar
1998-12-28  0:00         ` Jerry van Dijk
1998-12-27  0:00     ` Tom Moran
1998-12-28  0:00       ` dewar
1998-12-28  0:00   ` dewar [this message]
1998-12-28  0:00 ` Tom Moran
1999-01-06  0:00 ` Matthew Heaney
1999-01-07  0:00   ` dewar
1999-01-07  0:00   ` Robert I. Eachus
replies disabled

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