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=-0.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b1208117d36fb121 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-08 08:17:28 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!cambridge1-snf1.gtei.net!news.gtei.net!bos-service1.ext.raytheon.com!dfw-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <3CB1B473.CF6E93AD@despammed.com> From: Wes Groleau Reply-To: wesgroleau@despammed.com X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en,es-MX,es,pt,fr-CA,fr MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: System.Address'Size - not a static integer expression? References: <665e587a.0203060957.3682edf7@posting.google.com> <5ee5b646.0203061721.36d42541@posting.google.com> <3C877185.1CF93423@despammed.com> <7f1fa3aa.0203081034.12a7bd11@posting.google.com> <3C891463.C4C09795@despammed.com> <5ee5b646.0204072057.48d33742@posting.google.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 08 Apr 2002 10:17:07 -0500 NNTP-Posting-Host: 151.168.144.162 X-Complaints-To: news@ext.ray.com X-Trace: dfw-service2.ext.raytheon.com 1018279044 151.168.144.162 (Mon, 08 Apr 2002 10:17:24 CDT) NNTP-Posting-Date: Mon, 08 Apr 2002 10:17:24 CDT Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:22226 Date: 2002-04-08T10:17:07-05:00 List-Id: > > There's the justification: 'Size is sometimes > > non-static, and requiring a compiler to distinguish when > > imposes too much complexity. > > No, this is quite wrong (and there is quite a bit of > misinformation in this thread). > > First, it is not correct that 'Size is always non-static. > As is quite clear from RM 4.9 I said "sometimes" NOT "always" > 7 an attribute_reference that denotes a scalar value, > and whose prefix denotes a static scalar subtype; > > any application of 'Size to a static scalar subtype is > indeed static. > > So, how come size of other types is never static. It does > NOT have to do with distinguishing constant and dynamic > cases -- that's trivial and has to be done anyway. I'll take your word for that, but the last time both Apex and GNAT rejected a 'Size that I knew was static (in the sense that it traced to a constant at compile time) I found something in the RM that basically insisted that 'Size is non-static. Perhaps I'll have time to hunt that down again this week. (Don't hold your breath) -- Wes Groleau http://freepages.rootsweb.com/~wgroleau