From: JSharer-No_Spam_@psu.edu (Jack W. Sharer)
Subject: Re: Access and alias
Date: 2000/04/10
Date: 2000-04-10T00:00:00+00:00 [thread overview]
Message-ID: <8cshra$qbq@r02n01.cac.psu.edu> (raw)
In-Reply-To: K5rH4.445$uE2.158283@news.pacbell.net
The following code does not compile. Why? How do I fix it?
with Interfaces.C.Strings; use Interfaces.C.Strings;
procedure Test_Access is
procedure EngOutputBuffer ( OutputBuffer: in Chars_Ptr );
pragma Import ( C, EngOutputBuffer, "engOutputBuffer" );
Matlab_Output: aliased Interfaces.C.Char_Array(1..50000);
begin
EngOutputBuffer ( To_Chars_Ptr ( Matlab_Output'Access ) );
end Test_Access;
The compiler is gnat under Sun Solaris.
The compiler generated messages are
warning: aliased object has explicit bounds
warning: declare with explicit initialization
warning: for use with unconstrained access
object subtype must statically match designated subtype
next prev parent reply other threads:[~2000-04-10 0:00 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-04-04 0:00 Access and alias NANCY HEHIR
2000-04-04 0:00 ` tmoran
2000-04-04 0:00 ` Laurent Guerby
2000-04-04 0:00 ` NANCY HEHIR
2000-04-04 0:00 ` Laurent Guerby
2000-04-05 0:00 ` Alfred Hilscher
2000-04-05 0:00 ` Laurent Guerby
2000-04-05 0:00 ` Ted Dennison
2000-04-05 0:00 ` Jeff Carter
2000-04-06 0:00 ` Alfred Hilscher
2000-04-07 0:00 ` Jeff Carter
2000-04-06 0:00 ` Robert Dewar
2000-04-07 0:00 ` Jeff Carter
2000-04-06 0:00 ` Robert Dewar
2000-04-06 0:00 ` tmoran
2000-04-07 0:00 ` Robert Dewar
2000-04-07 0:00 ` tmoran
2000-04-09 0:00 ` Robert Dewar
2000-04-09 0:00 ` tmoran
2000-04-10 0:00 ` Jack W. Sharer [this message]
2000-04-05 0:00 ` Jeffrey D. Cherry
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox