comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: Ada 95 constructors on limited types
Date: Sat, 05 Jan 2008 11:32:09 +0100
Date: 2008-01-05T11:32:09+01:00	[thread overview]
Message-ID: <874pds36mu.fsf@ludovic-brenta.org> (raw)
In-Reply-To: sa4bq83bzua.fsf@snoopy.microcomaustralia.com.au

Brian May writes:
>>>>>> "Jeffrey" == Jeffrey R Carter <spam.jrcarter.not@acm.nospam.org> writes:
>
>     Jeffrey> shaunpatterson@gmail.com wrote:
>     >> 
>     >> package Parent is
>     >> 
>     >> type Class is abstract tagged limited null record;
>     >> type Class_Access is access all Class'Class;
>     >> 
>     >> end Parent;
>
>     Jeffrey> There's your problem. Don't use public access types.
>
> Why not?

Because they automatically make the package impure for no good reason,
thereby preventing use of the package in pure or preelabotated
packages.  Moral: Declare your access types only if and where you need
them.

-- 
Ludovic Brenta.



  parent reply	other threads:[~2008-01-05 10:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-02 14:31 Ada 95 constructors on limited types shaunpatterson
2008-01-02 14:49 ` Dmitry A. Kazakov
2008-01-02 16:02 ` Robert A Duff
2008-01-02 16:20 ` Jeffrey R. Carter
2008-01-02 22:57   ` Brian May
2008-01-02 23:53     ` Jeffrey R. Carter
2008-01-05 10:32     ` Ludovic Brenta [this message]
2008-01-05 14:59       ` Robert A Duff
2008-01-08  1:58         ` Randy Brukardt
2008-01-02 18:36 ` Martin Krischik
2008-01-04  1:38   ` Randy Brukardt
replies disabled

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