From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,75ffc1f081ec10e3 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.arcor.de!news.arcor.de!not-for-mail Date: Thu, 13 Jul 2006 10:39:42 +0200 From: Georg Bauhaus Organization: elsewhere User-Agent: Thunderbird 1.5.0.4 (Macintosh/20060530) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Constant record components References: <12ad8guf3sg1o0d@corp.supernews.com> <1loq7utmaxvll$.yqsxj5edzqgv.dlg@40tude.net> <12afs64kh432q0e@corp.supernews.com> <12aihj2lrjqpc3a@corp.supernews.com> <7bednaJHX_FTMDTZnZ2dnUVZ_uudnZ2d@megapath.net> <12ak5urrrj6d756@corp.supernews.com> <12arsrtbe8flpf8@corp.supernews.com> <1152263715.5568.1.camel@localhost> <12avmdo6nl3g876@corp.supernews.com> <44afe7b2$0$29128$9b4e6d93@newsread4.arcor-online.net> <12bbrq2lqngr807@corp.supernews.com> In-Reply-To: <12bbrq2lqngr807@corp.supernews.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <44b60678$0$26256$9b4e6d93@newsread2.arcor-online.net> NNTP-Posting-Date: 13 Jul 2006 10:38:20 MEST NNTP-Posting-Host: db4ff5ad.newsread2.arcor-online.net X-Trace: DXC=Vi]CiX?f?k5CDTkn::RD0?Q5U85hF6f;4jW\KbG]kaM8GSi?jHD8GO0YBR\`Y6QO19hP3YJKgE\j ME wrote: > "Georg Bauhaus" 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;