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:29:40 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!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:29:57 -0600 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <5JfM9.395655$P31.145145@rwcrnsc53> <1040410199.497867@master.nyc.kbcfp.com> 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:32118 Date: 2002-12-20T15:29:57-06:00 List-Id: Frank J. Lhota wrote in message ... >"Hyman Rosen" wrote in message >news:1040410199.497867@master.nyc.kbcfp.com... >> The whole concept of representation specs on tagged >> records seems pretty dodgy to me. > >I agree. AFAIK, the only reason to use a representation clause is to make >sure that a type matches some external data layout. Tagged types, by their >very nature, do not fit into this category. This seems to be one of those >theoretical issues with no practical consequences. Not true. It's perfectly possible to use rep. clauses to insure storage minimization better than the compiler's pragma Pack. (Usually, Pack assumes some amount of efficiency is required.) Also, it is perfectly possible to pass a tagged record to an external data layout, if that layout includes a tag already (such as COM on Microsoft machines), or if you are passing the object minus the tag to the external system, but need type extension to define the external format properly (that's what happened to use with bitmaps in Claw). I agree this isn't likely to be a common use, but it has happened, and I understand that Rational finds that they have customers which think these capabilities are very important. It's best not to argue with customers. :-) Randy.