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,e429176c9adb07b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-20 00:26:26 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc01.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: [OT] Best way to isolate a GUI? References: X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 12.234.13.56 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc01 1045729585 12.234.13.56 (Thu, 20 Feb 2003 08:26:25 GMT) NNTP-Posting-Date: Thu, 20 Feb 2003 08:26:25 GMT Organization: AT&T Broadband Date: Thu, 20 Feb 2003 08:26:25 GMT Xref: archiver1.google.com comp.lang.ada:34256 Date: 2003-02-20T08:26:25+00:00 List-Id: >Short of possibly efficiency concerns or representation issues, I just don't >see much excuse for variant records when we've got tagged types. Whoa there! If you have default discriminants, you can have Transport : Vehicle(Kind=>Car, Horsepower=>100); and later Transport := (Kind=>Truck, Axle_Count=>3, Capacity => Tons'(0.5)); and the compiler will even warn you if you forget and try: Transport := (Kind=>Truck, Capacity => Tons'(0.5)); That's a lot simpler than futzing with Transport : Vehicle_Ptr := new Car'(Horsepower=>100); etc