comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <bauhaus@futureapps.de>
Subject: Re: Constant record components
Date: Thu, 13 Jul 2006 10:39:42 +0200
Date: 2006-07-13T10:38:20+02:00	[thread overview]
Message-ID: <44b60678$0$26256$9b4e6d93@newsread2.arcor-online.net> (raw)
In-Reply-To: <12bbrq2lqngr807@corp.supernews.com>

ME wrote:
> "Georg Bauhaus" <bauhaus@futureapps.de> wrote in message 


>>   type C is limited private;
>>     -- to be the constant part in R  -- C ops ...
>>
>>   type R is record  -- cannot be assigned because
> but I need R to be assigned

OK. R in nonlimited in the private part and in the body
of the package. A public R operation Update could assign the
record parts that need to be updated from outside. This won't
be as brief as `":=" which doesn't assign to constant parts',
But in return, having an explicit assignment procedure lets you
choose a suitable name for what the assignment is about.

> anyway the unconstrained array of records R is private

Good. Sounds like it has an interface of subprograms
already?

>>     immutable: C;  -- this cannot be assigned either (read only)
>>     other_data: Integer;  -- (read/write)
>>   end record;



  reply	other threads:[~2006-07-13  8:39 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <12ad8guf3sg1o0d@corp.supernews.com>
2006-07-01 17:06 ` Constant record components Dmitry A. Kazakov
2006-07-01 17:37   ` ME
2006-07-01 18:33     ` Georg Bauhaus
2006-07-01 21:44       ` Jeffrey R. Carter
2006-07-02  9:18         ` Georg Bauhaus
2006-07-02 16:13   ` ME
2006-07-03  7:50     ` Dmitry A. Kazakov
2006-07-03 11:46       ` Craig Carey
2006-07-04  0:06         ` M E Leypold
2006-07-03 16:31       ` ME
2006-07-03 23:53         ` Randy Brukardt
2006-07-04  1:59           ` Craig Carey
2006-07-04  7:25           ` ME
2006-07-05 21:55             ` Randy Brukardt
2006-07-06  0:59               ` tmoran
2006-07-06  7:47               ` Jean-Pierre Rosen
2006-07-06 22:29                 ` Randy Brukardt
2006-07-07  4:34                   ` Jeffrey R. Carter
2006-07-07  5:39                   ` ME
2006-07-07  9:15                     ` Georg Bauhaus
2006-07-08 16:13                       ` ME
2006-07-08 17:14                         ` Georg Bauhaus
2006-07-13  6:58                           ` ME
2006-07-13  8:39                             ` Georg Bauhaus [this message]
2006-07-07 21:04                     ` Randy Brukardt
2006-07-14  8:15                       ` Craig Carey
2006-07-14 12:51                         ` Craig Carey
2006-07-15  3:45                           ` ME
2006-07-04  0:08         ` M E Leypold
2006-07-02  5:52 ` Craig Carey
replies disabled

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