From: dewar@cs.nyu.edu (Robert Dewar)
Subject: Re: Interface programming
Date: 1996/08/19
Date: 1996-08-19T00:00:00+00:00 [thread overview]
Message-ID: <dewar.840485460@schonberg> (raw)
In-Reply-To: 4v8pj1$7n2@hermes.acs.unt.edu
Ramesh asks about
procedure SOMEPROC is
package FORT_LIB is
function SQRT(X:FLOAT) return FLOAT;
private
pragma INTERFACE(FORTRAN, SQRT);
end FORT_LIB;
NUM : INTEGER;
NUMROOT : FLOAT;
begin
GET(NUM);
NUMROOT := SQRT(FLOAT(NUM));
end SOMEPROC;
SQRT is not directly visible at the point of call, so the compiler is
right to reject it. Indeed the only possible explanation of putting
the function inside an internal package is to make sure that it is not
directly visible. I suspect some fundamental misunderstanding of
Ada visibility rules here!
next prev parent reply other threads:[~1996-08-19 0:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-08-19 0:00 Interface programming Ramesh S. Mantri
1996-08-19 0:00 ` Robert Dewar [this message]
1996-08-19 0:00 ` Paul Hussein
1996-08-19 0:00 ` Robert Dewar
1996-08-21 0:00 ` Pascal Ledru
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox