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-ArrivalTime: 2002-04-17 03:17:01 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!kibo.news.demon.net!news.demon.co.uk!demon!pipehawk.demon.co.uk!not-for-mail From: john.mccabe@emrad.ns.com (John McCabe) Newsgroups: comp.lang.ada Subject: Re: Out parameters in a function Date: Wed, 17 Apr 2002 10:17:58 GMT Organization: Emrad Ltd Message-ID: <3cbd4b58.879714@news.demon.co.uk> References: <3cbbe583.3628858@news.demon.co.uk> <3cbc3f05.26543327@news.demon.co.uk> NNTP-Posting-Host: pipehawk.demon.co.uk X-NNTP-Posting-Host: pipehawk.demon.co.uk:158.152.226.81 X-Trace: news.demon.co.uk 1019038592 nnrp-08:23722 NO-IDENT pipehawk.demon.co.uk:158.152.226.81 X-Complaints-To: abuse@demon.net X-Newsreader: Forte Free Agent 1.21/32.243 Xref: archiver1.google.com comp.lang.ada:22644 Date: 2002-04-17T10:17:58+00:00 List-Id: On 16 Apr 2002 20:34:04 +0100 (BST), Matthew Woodcraft wrote: >In article <3cbc3f05.26543327@news.demon.co.uk>, >John McCabe wrote: >>It was more of a: >> >> BYTE, BYTE FUNCTION split.int16 (VAL INT16 n) >> BYTE high, low: >> VALOF >> SEQ >> high := BYTE (n >> 8) >> low := BYTE (n /\ 8) >> RESULT high, low >> : >> >>type of thing, but I can't remember off-hand how you would use a >>returned status with multiple return values! > > h, l := split.int16 (365) Thanks, but that's not what I meant. What I meant was if one of the return values was boolean, and one an int for example, and you wanted to check the returned boolean without bothering to assign it to a variable! I presume that this doesn't make sense to do (so probably can't be done) - I'll have to check my Occam books toinight! It probably wasn't worth mentioning in the first place :-)