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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,28cd155693714664 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-23 06:24:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!server1.netnews.ja.net!pegasus.csx.cam.ac.uk!not-for-mail From: Matthew Woodcraft Newsgroups: comp.lang.ada Subject: Re: Faulty languages and Liability Date: 23 Jun 2002 14:21:59 +0100 (BST) Organization: Linux Unlimited Message-ID: <-an*Dlxrp@news.chiark.greenend.org.uk> References: <%rcR8.6726$cE5.5860@nwrddc02.gnilink.net> NNTP-Posting-Host: rapun.sel.cam.ac.uk Originator: mattheww@chiark.greenend.org.uk ([212.135.138.206]) Xref: archiver1.google.com comp.lang.ada:26624 Date: 2002-06-23T14:21:59+01:00 List-Id: In article , Hyman Rosen wrote: >Matthew Woodcraft wrote: >> Only in the same sense as any other compile-time check is. Are you >> counting the compiler as a reader of the code? > >You're not telling the compiler anything special, since it knows >you want the object to be aliased when you take a pointer to it. The interesting case is when I didn't want the object to be aliased, but I tried to take a pointer to it. In your sense, 'constant' doesn't tell the compiler anything special, as it can see which objects are assigned to. But the associated compile-time checks are still useful. -M-