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,9245b8db9abd376c X-Google-Attributes: gid103376,public X-Google-Thread: 11232c,bde6489d2ec79329 X-Google-Attributes: gid11232c,public X-Google-ArrivalTime: 2002-04-16 18:30:54 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.mailgate.org!mygate.mailgate.org!129.8.166.29!not-for-mail From: "Kent Paul Dolan" Newsgroups: comp.lang.ada,misc.misc Subject: Re: Out parameters in a function Date: Wed, 17 Apr 2002 01:30:53 +0000 (UTC) Organization: Mailgate.ORG Server - http://www.Mailgate.ORG Message-ID: <9728d398ea882f2a2d44e362db453fe9.48257@mygate.mailgate.org> References: <3cbbe583.3628858@news.demon.co.uk> <3cbc3f05.26543327@news.demon.co.uk> <3CBC855D.148232E3@san.rr.com> NNTP-Posting-Host: 129.8.166.29 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.mailgate.org 1018998135 26949 129.8.166.29 (Wed Apr 17 03:30:53 2002) X-Complaints-To: abuse@mailgate.org NNTP-Posting-Date: Wed, 17 Apr 2002 01:30:53 +0000 (UTC) Injector-Info: news.mailgate.org; posting-host=129.8.166.29; posting-account=48257; posting-date=1018998135 User-Agent: Mailgate Web Server X-URL: http://mygate.mailgate.org/mynews/comp/comp.lang.ada/9728d398ea882f2a2d44e362db453fe9.48257%40mygate.mailgate.org Xref: archiver1.google.com comp.lang.ada:22624 misc.misc:6416 Date: 2002-04-17T01:30:53+00:00 List-Id: "Darren New" wrote: > > > RESULT high, low > > h, l := split.int16 (365) > Note that in virtually all these languages, what this means is "return > an anonymous tuple from the function." AFAIK, FORTH is the only > reasonably common language where you can *actually* return multiple > values from a function, rather than returning a single structured value. Ummm. APL, PL/PGSQL, CLAIRE, ML (and so OCaml, JoCaml), ... Polyadic valued functions are actually fairly common programming features, I found one reference proposing installing them in Java, and the Java Enumeration is vaguely such a beast already. xanthian. -- Posted via Mailgate.ORG Server - http://www.Mailgate.ORG