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, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,47208e1e64e89fe0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-10 07:16:52 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!212.74.64.35!colt.net!diablo.theplanet.net!news.indigo.ie!feeder.news.heanet.ie!193.1.198.47.MISMATCH!not-for-mail Newsgroups: comp.lang.ada From: Colin_Paul_Gloster@ACM.org (Colin Paul Gloster) Subject: Re: Null Record is not always Null References: <1b585154.0210100512.54af8543@posting.google.com> Reply-To: Colin_Paul_Gloster@ACM.org Message-ID: User-Agent: slrn/0.9.7.0 (SunOS) Organization: Dublin City University (DCU) Cache-Post-Path: ns2-ext.dcu.ie!unknown@camac.dcu.ie X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) Date: 10 Oct 2002 14:16:51 GMT NNTP-Posting-Date: 10 Oct 2002 14:16:51 GMT NNTP-Posting-Host: 136.206.1.1 X-Trace: 1034259411 reader.news.heanet.ie 179 [::ffff:136.206.1.1]:55994 Xref: archiver1.google.com comp.lang.ada:29659 Date: 2002-10-10T14:16:51+00:00 List-Id: Peter Richtmyer posted different behavior on three compilers and said: "Don't know if there is a "right" result, or is this one of those gray areas. Anybody?" Well, though 13.12 re pragmas has: "[..] An implementation may place limitations on the values of the expression that are supported, and limitations on the supported combinations of restrictions. The consequences of violating such limitations are implementation defined. [..]", a pragma should never stop a compilation. As for the rest, clearly you were given suboptimal results for your possibly wacky null record but compilers are allowed to ignore your requests: "[..] [..] A representation or operational item that is not supported by the implementation is illegal, [..] [..] An implementation may interpret aspects of representation in an implementation-defined manner. An implementation may place implementation-defined restrictions on representation items. [..]" (13.1). In 13.3 is "nonnegative" chosen to denote >0 or >=0? "[..] Size may be specified for stand-alone objects via an attribute_definition_clause; the expression of such a clause shall be static and its value nonnegative. [..]"