comp.lang.ada
 help / color / mirror / Atom feed
From: "Matthew Heaney" <matthew_heaney@acm.org>
Subject: Re: Objects properties -  Ada design issues question
Date: 2000/02/04
Date: 2000-02-04T00:00:00+00:00	[thread overview]
Message-ID: <0JIm4.1579$563.51016@newsread1.prod.itd.earthlink.net> (raw)
In-Reply-To: s9ljhv6jdh127@corp.supernews.com

In article <s9ljhv6jdh127@corp.supernews.com> , "Vladimir Olensky" 
<vladimir_olensky@yahoo.com> wrote:

> This is due to the fact that Ada does not allow to have constant
> fields in record types.

But you can so that by using discriminants:

type RT
  (X : XT;
   Y : YT) is record
   Z : ZT;
end record;

Components X and Y are read-only, and component Z is read-write.

--
Celebrate Darwin Day on Saturday, 12 February!

<http://www.bbc.co.uk/education/darwin/index.shtml>




  reply	other threads:[~2000-02-04  0:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-04  0:00 Objects properties - Ada design issues question Vladimir Olensky
2000-02-04  0:00 ` Matthew Heaney [this message]
2000-02-04  0:00 ` Florian Weimer
2000-02-04  0:00   ` Samuel T. Harris
2000-02-04  0:00   ` Vladimir Olensky
2000-02-04  0:00   ` Vladimir Olensky
2000-02-06  0:00     ` Andy
2000-02-07  0:00       ` Vladimir Olensky
2000-02-10  0:00         ` Andy
2000-02-08  0:00     ` Florian Weimer
2000-02-04  0:00 ` Vladimir Olensky
replies disabled

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