comp.lang.ada
 help / color / mirror / Atom feed
From: jerry@jvdsys.nextjk.stuyts.nl (Jerry van Dijk)
Subject: Re: Self-referential 'Access
Date: 1998/04/20
Date: 1998-04-20T00:00:00+00:00	[thread overview]
Message-ID: <ErqBIM.8q@jvdsys.nextjk.stuyts.nl> (raw)
In-Reply-To: matthew_heaney-ya023680002004980916500001@news.ni.net


I guess this is an opertunity to learn something as:

Matthew Heaney (matthew_heaney@acm.org) wrote:

: I don't know the exact rules here, but what I do in cases like this is just
: use Unchecked_Access:

:     type Cell is limited record
:         Contents : String (1 .. 10);
:         Next_Cell : List := Cell'Unchecked_Access;
:         Prev_Cell : List := Cell'Unchecked_Access;
:     end record;

: This compiles cleanly using GNAT 3.10p.

As Cell is a type, not an object, what are Next_Cell and
Prev_Cell initialized to here ?

Jerry.

-- 
-- Jerry van Dijk  | email: jdijk@acm.org
-- Leiden, Holland | member Team-Ada




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

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-20  0:00 Self-referential 'Access Stanley Allen
1998-04-20  0:00 ` Matthew Heaney
1998-04-20  0:00   ` Jerry van Dijk [this message]
1998-04-20  0:00 ` Tucker Taft
replies disabled

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