comp.lang.ada
 help / color / mirror / Atom feed
From: Matthew Heaney <matthew_heaney@acm.org>
Subject: Re: What's wrong with this code?
Date: 1999/04/20
Date: 1999-04-20T00:00:00+00:00	[thread overview]
Message-ID: <m3zp43ywi8.fsf@mheaney.ni.net> (raw)
In-Reply-To: 7fig4m$5f5$1@nnrp1.dejanews.com

dennison@telepath.com writes:

> I tried adding the following declarations:
>     type Alarm_List is array (1..2) of Alarm_P;
> 
>     type Alarm is tagged limited
>     ...
>             Al : Alarm_List := (others => Alarm'Access);
> 
> And got this error (on the "Al" field) instead:
> alarm_model.ads:52:43: non-local pointer cannot point to local object

What message do you get if you use 'Unchecked_Access instead of 'Access?









  reply	other threads:[~1999-04-20  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-20  0:00 What's wrong with this code? okellogg
1999-04-20  0:00 ` dennison
1999-04-20  0:00   ` Matthew Heaney
1999-04-20  0:00   ` dennison
1999-04-20  0:00     ` Matthew Heaney [this message]
1999-04-21  0:00       ` dennison
1999-04-21  0:00 ` Stephen Leake
replies disabled

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