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-Thread: 103376,195f9d06474696b0 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Wed, 26 Oct 2005 14:48:37 -0500 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: Subject: Re: Choice of variant record discriminant (design question) Date: Wed, 26 Oct 2005 14:52:23 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4952.2800 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4952.2800 Message-ID: NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-EyNnr1XbrsbihP9yB5ZThEq+9dcPeGr41t++FmBoPRrE2F3zV/pIAjQ3NXcEXQoOF931uZY/0V+bvfR!FRJytD38/wjWuGUrb+wvw7O+2YY8DhiL3tu1bOYHSrwZtl77xdH2e2GQzqxcAjxslmr32GVCmac0!pn7BVyVzhF286A== X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:5964 Date: 2005-10-26T14:52:23-05:00 List-Id: "Jacob Sparre Andersen" wrote in message news:m2acgwmpsu.fsf@hugin.crs4.it... ... > but I have a feeling there ought to be a more elegant solution. Does > somebody have a suggestion or two? I have to wonder if the variant is worth it. There is not going to be any space savings, and in typical use, there isn't going to be much increase in safety, either. So I'd probably give up on the variant in this case, because I'd rather keep the aggregates (they are big help when a component needs to be added). But only you can weight that trade-off, because the relative value of the two options is something that depends on the components and the intended uses. (If the "empty" variant wasn't going to be empty in future version, for instance, the variant would make more sense.) Randy.