comp.lang.ada
 help / color / mirror / Atom feed
From: Marius Amado Alves <amado.alves@netcabo.pt>
To: comp.lang.ada@ada-france.org
Subject: Re: Ptr Problem Question
Date: Fri, 01 Oct 2004 12:04:26 +0100
Date: 2004-10-01T12:04:26+01:00	[thread overview]
Message-ID: <mailman.145.1096628674.390.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <6Aa7d.465487$OB3.325741@bgtnsc05-news.ops.worldnet.att.net>

 > --    9.    Ptr     : a.X_Ptr  := Object'Access;
 > --       >>> non-local pointer cannot point to local object

Hmm... I guess subtyping does not make it local.

If you're in hurry you can always get away with 'Unchecked_Access or 
'Unrestricted_Access.

Otherwise you have to deal with the Ada accessibility rules. And expect 
them to get in your way often.

Or invest in pointerless idioms: http://www.liacc.up.pt/~maa/no_pointers/





  reply	other threads:[~2004-10-01 11:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-01 10:29 gnat 3.15p with kernel 2.6 / SuSE 9.1 Thomas Aho
2004-10-01 10:40 ` Florian Weimer
2004-10-01 13:24   ` Marc A. Criley
2004-10-01 17:15     ` Ludovic Brenta
2004-10-04  8:36       ` Alex R. Mosteo
2004-10-05  6:35         ` Thomas Aho
2004-10-01 10:46 ` Ptr Problem Question Arthur Schwarz
2004-10-01 11:04   ` Marius Amado Alves [this message]
2004-10-01 18:12   ` Jeffrey Carter
replies disabled

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