comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@cs.nyu.edu (Robert Dewar)
Subject: Re: access all definitive
Date: 28 Jan 1995 14:48:13 -0500
Date: 1995-01-28T14:48:13-05:00	[thread overview]
Message-ID: <3ge71t$h4r@gnat.cs.nyu.edu> (raw)
In-Reply-To: gauthier-2701950948340001@164.81.60.62

fintan said:

"an access all type can only designate an aliased
variable and cannot designate a dynamic variable."

that's very wrong. an access all type can point to all things (why do you
think it uses all>? :-)

in particular, you can of course have a access all designate a dynamic
variable (i.e. one generated by an allocator).

one coding style that will develop in Ada 95 is simply to use all on all
access type declarations. However, I am not sure that is such a good idea,
one ought to minimize the use of aliased variables (there is a good reason
that Ada 83 did not have this feature, its overuse is definitely damaging)




  reply	other threads:[~1995-01-28 19:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-01-24 17:04 access all definitive fintan
1995-01-27  9:54 ` Michel Gauthier
1995-01-28 19:48   ` Robert Dewar [this message]
1995-01-30  5:24     ` Michael Feldman
1995-01-28  5:36 ` Cyrille Comar
1995-01-28  5:45 ` Robert Dewar
replies disabled

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