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,c80e6f742e73478f X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!feeder.erje.net!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Ensuring postconditions in the face of exceptions Date: Tue, 16 Mar 2010 18:23:16 -0500 Organization: Jacob Sparre Andersen Message-ID: References: <820d96c0-5d67-4b8c-8c5b-811ca4f1127e@g26g2000yqn.googlegroups.com> <4b9a098b$0$2339$4f793bc4@news.tdc.fi> <3696058c-235f-4d58-87be-74172ca0248a@g4g2000yqa.googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1268781799 23020 69.95.181.76 (16 Mar 2010 23:23:18 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 16 Mar 2010 23:23:18 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5843 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Xref: g2news1.google.com comp.lang.ada:9618 Date: 2010-03-16T18:23:16-05:00 List-Id: "Robert A Duff" wrote in message news:wcciq8wxpkv.fsf@shell01.TheWorld.com... > "Randy Brukardt" writes: ... >> Repeat after me: "limited" is a property of a view! It's not constant for >> a >> particular type! That's a common mistake that even those of us on the ARG >> make from time-to-time. > > I don't understand why the definition of "by reference" is subtly > different from the definition of "immutably limited". Two obvious reasons: "by-reference" predates "immutably limited" by more than 10 years, and besides there are non-limited types where are "by-reference" (non-limited tagged types). The latter also means that types with a component of a non-limited tagged type are "by-reference" as well. Finally (OK, I can't count), "by-reference" breaks privacy (thus only dynamic rules ought to depend on it; legality rules should never depend on the contents of the private part), while "immutably limited" doesn't break privacy and thus can be used in legality rules. "Immutably limited" is a direct property; it doesn't depend on type of components. The net effect is that there isn't much similarity between the two concepts, nor their use. Randy.