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: 11232c,bde6489d2ec79329,start X-Google-Attributes: gid11232c,public X-Google-Thread: 103376,9245b8db9abd376c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-16 12:58:24 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsmi-us.news.garr.it!NewsITBone-GARR!area.cu.mi.it!news.mailgate.org!mygate.mailgate.org!198.207.153.40!not-for-mail From: "Kent Paul Dolan" Newsgroups: comp.lang.ada,misc.misc Subject: Re: Out parameters in a function Date: Tue, 16 Apr 2002 19:58:23 +0000 (UTC) Organization: Mailgate.ORG Server - http://www.Mailgate.ORG Message-ID: References: <4519e058.0204150709.55c94dfb@posting.google.com> <3cbbe583.3628858@news.demon.co.uk> <3cbc3f05.26543327@news.demon.co.uk> NNTP-Posting-Host: 198.207.153.40 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.mailgate.org 1018969303 24947 198.207.153.40 (Tue Apr 16 21:58:23 2002) X-Complaints-To: abuse@mailgate.org NNTP-Posting-Date: Tue, 16 Apr 2002 19:58:23 +0000 (UTC) Injector-Info: news.mailgate.org; posting-host=198.207.153.40; posting-account=48257; posting-date=1018969303 User-Agent: Mailgate Web Server X-URL: http://mygate.mailgate.org/mynews/comp/comp.lang.ada/eebf1c62fdda01f9aba0615f238ddc2f.48257%40mygate.mailgate.org Xref: archiver1.google.com comp.lang.ada:22613 misc.misc:6405 Date: 2002-04-16T19:58:23+00:00 List-Id: "John McCabe" wrote: > type of thing, but I can't remember off-hand how you would use a > returned status with multiple return values! Well, if I'm not inventing capabilities, in C the syntax is fairly direct (and forgive that with several dozen languages mixed in my head I cannot write any one correctly without manual in lap, which I don't have these days): if ( ( aSomestructTypedVariable = aSomestructReturningFunction ( lots, of, parms ) ).booleanPart ) { usefulVal = somestruct.usefulPart; } Does Ada support a similar "assignment en passant" mechanism? xanthian. (Does C return structures, for that matter?) -- Posted via Mailgate.ORG Server - http://www.Mailgate.ORG