From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: aliased variables
Date: 1998/08/14
Date: 1998-08-14T00:00:00+00:00 [thread overview]
Message-ID: <dewar.903075068@merv> (raw)
In-Reply-To: ExM3wM.62q.0.-s@inmet.camb.inmet.com
Richard may like better the error messages that come out of the latest
version of
GNAT:
1. procedure Al_Exp is
2.
3. type Mt is array(Natural range <>) of Integer;
4.
5. type H_Mt is access all Mt;
6.
7. K : aliased Mt(1 .. 10);
|
>>> warning: aliased object has explicit bounds
>>> warning: declare with explicit initialization
>>> warning: for use with unconstrained access
8. L : H_Mt;
9.
10. begin
11. L := K'Access;
|
>>> object subtype must statically match designated subtype
12. end;
prev parent reply other threads:[~1998-08-14 0:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-08-13 0:00 aliased variables Richard Beare
1998-08-13 0:00 ` David C. Hoos, Sr.
1998-08-13 0:00 ` Tucker Taft
1998-08-14 0:00 ` Robert Dewar [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox