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-05 22:26:17 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!news.xtra.co.nz!news.mel.connect.com.au!not-for-mail From: "Matthew Baulch" Newsgroups: comp.lang.ada Subject: Re: Upcasting Date: Wed, 06 Nov 2002 17:26:00 +1100 Organization: Customer of Connect.com.au Pty. Ltd. Message-ID: References: NNTP-Posting-Host: 210.11.36.166 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: perki.connect.com.au 1036563976 1427 210.11.36.166 (6 Nov 2002 06:26:16 GMT) X-Complaints-To: abuse@connect.com.au NNTP-Posting-Date: 6 Nov 2002 06:26:16 GMT User-Agent: Pan/0.13.0 (The whole remains beautiful) Xref: archiver1.google.com comp.lang.ada:30422 Date: 2002-11-06T06:26:16+00:00 List-Id: On Tue, 05 Nov 2002 12:33:51 +0000, Stephen Leake wrote: > "Matthew Baulch" writes: > >> My question is: How would you do this 'upcasting' if varying >> types existed? > > I don't know what you mean by "varying types". You might mean "variant > records", but I doubt it. > > Can you give an example of what you mean? Not variant records. Varying types: eg. several vars with different types: Int1, Int2 : Integer; Flt1, Flt2 : Float; Str1, Str2 : String(1..10); So, how would you use the: "x := (xxx with xxx, xxx, xxx)" statement where multiple types are present.