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,7149ea26d9d2075c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-06 07:18:43 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: Upcasting Date: Wed, 6 Nov 2002 15:18:36 +0000 (UTC) Organization: GMUGHDU Message-ID: References: NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1036595916 4755 134.91.1.34 (6 Nov 2002 15:18:36 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Wed, 6 Nov 2002 15:18:36 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: archiver1.google.com comp.lang.ada:30458 Date: 2002-11-06T15:18:36+00:00 List-Id: Matthew Baulch wrote: : But if you wanted to assign Foo1 to Foo2: : Foo2 := (Foo1 with 5.0, 10.0); : would work. Not sure I understand your question, because it is not obvious to me what a varying type is. You could do foo2 := (foo1 with derived1 => 5.0, derived2 => 10.0); : : My question is: How would you do this 'upcasting' if varying : types existed? Obviously the compiler could tell where each : value must go based on their type if only one of their type : was needed in the transition.