comp.lang.ada
 help / color / mirror / Atom feed
From: Jean-Pierre Rosen <rosen@adalog.fr>
Subject: Re: Re-exporting primitive operations of a private type (like "-", and 'min)
Date: Wed, 02 Nov 2005 10:50:17 +0100
Date: 2005-11-02T10:50:17+01:00	[thread overview]
Message-ID: <l42akd.c8d.ln@hunter.axlog.fr> (raw)
In-Reply-To: <ZDk9f.7943$M16.3294@reader1.news.jippii.net>

Niklas Holsti a �crit :
> With the new feature, the "implementation defined" pseudocode could be 
> replaced by real code:
> 
>       type Storage_Offset is private range <>;  -- Not Ada.
>       type Storage_Element is private mod <>;   -- Not Ada.
> 
> The full type declarations would be in the private part of the package, 
> as usual.
> 
> In such declarations, the "private" keyword is perhaps unnecessary, 
> since the presence of the box "<>" shows that the declared type is 
> partly hidden.
> 
> Does this idea appeal to anyone?
> 
I fail to see the benefit. The only thing that would be "hidden" with 
such a declaration is the actual value of the bounds. But you could get 
them with 'First and 'Last. So, there would be no benefit in pretending 
that they are "private".

-- 
---------------------------------------------------------
            J-P. Rosen (rosen@adalog.fr)
Visit Adalog's web site at http://www.adalog.fr



  parent reply	other threads:[~2005-11-02  9:50 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-29 21:19 Re-exporting primitive operations of a private type (like "-", and 'min) Anonymous Coward
2005-10-30  8:57 ` Dmitry A. Kazakov
2005-10-30  9:18 ` Jeffrey R. Carter
2005-10-30 14:16   ` Martin Krischik
2005-10-30 22:35     ` Robert A Duff
2005-10-31  4:15   ` Anonymous Coward
2005-10-31  4:34     ` Anonymous Coward
2005-10-31  6:14     ` Jeffrey R. Carter
2005-11-01  3:39       ` Anonymous Coward
2005-11-01  4:47         ` Jeffrey R. Carter
2005-11-01 23:43           ` Anonymous Coward
2005-11-02  3:35             ` Jeffrey R. Carter
2005-11-01 14:11         ` Robert A Duff
2005-10-31  8:27     ` Niklas Holsti
2005-10-31  9:18       ` Dmitry A. Kazakov
2005-11-02  9:50       ` Jean-Pierre Rosen [this message]
2005-11-03  9:15         ` Niklas Holsti
replies disabled

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