comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: Private discrete type as index
Date: Sun, 12 Jan 2003 19:48:00 GMT
Date: 2003-01-12T19:48:00+00:00	[thread overview]
Message-ID: <PDjU9.26685$No.3646@sccrnsc04> (raw)
In-Reply-To: yecy95qmasf.fsf@king.cts.com

>   type x is limited private;
>   type test is array(x) of boolean;
  The "array" abstraction has certain characteristics, among them
sequential indexing.  The object being implemented here is not an array.
If read-only, perhaps it's a function.  For read/write, perhaps a
function returning a pointer would be the syntactically simplest
approach.
  test_object(x).all := not test_object(y).all;
To allow multiple objects, of course, will require an additional
parameter, hidden or not, to distinguish which one.



  reply	other threads:[~2003-01-12 19:48 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-11 21:42 Private discrete type as index AG
2003-01-11  2:34 ` James S. Rogers
2003-01-12  0:09   ` AG
2003-01-11  7:16     ` James S. Rogers
2003-01-12  5:47       ` AG
2003-01-11 12:22         ` Dmitry A. Kazakov
2003-01-11 14:36         ` Charles H. Sampson
2003-01-12 19:23 ` Keith Thompson
2003-01-12 19:48   ` tmoran [this message]
2003-01-15 16:45     ` Dmitry A. Kazakov
2003-01-18  6:24       ` AG
2003-01-17 14:14         ` tmoran
2003-01-19  1:38           ` AG
2003-01-18  8:36             ` tmoran
2003-01-19  6:06               ` AG
2003-01-17 16:28         ` Dmitry A. Kazakov
replies disabled

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