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,a1ce307c10055549 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-20 13:34:47 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: calenday (was Re: IBM Acquires Rational Ada Date: Fri, 20 Dec 2002 15:35:03 -0600 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <5JfM9.395655$P31.145145@rwcrnsc53> <7HQjlgUY7GDY@eisner.encompasserve.org> X-Newsreader: Microsoft Outlook Express 4.72.3612.1700 X-MIMEOLE: Produced By Microsoft MimeOLE V4.72.3719.2500 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:32119 Date: 2002-12-20T15:35:03-06:00 List-Id: Larry Kilgallen wrote in message <7HQjlgUY7GDY@eisner.encompasserve.org>... >In article , "Randy Brukardt" writes: > >> a) is not a problem in practice. We did this in Claw, and all compilers >> put the tag at offset 0. (A few can be told to put it elsewhere, but >> that wasn't generally available a few years ago when we did that.) The >> size is a problem in that it is implementation-defined. > >Which compilers allowed you (at the time) to specify the tag position ? > >What language construct did they use to accept that specification ? Janus/Ada doesn't allow to specify the location of the tag explicitly, but it doesn't require a particular position, either. So if you put a component at location 0, the compiler will put the tag elsewhere (in the first hole big enough). And if you specify the location of all other components and the record size, it's pretty clear where the tag is. :-) Pascal Leroy of Rational has indicated that they had at least one customer who needed tags other than at location 0, so that their compiler supports that as well. I don't know if they explicitly allow specifying it, and I don't know the syntax if they do. I would presume it is an attribute, following the standard, see 13.5.1(15). Randy.