Related articles |
---|
[3 earlier articles] |
Re: Multiple return values icedancer@ibm.net (1997-04-18) |
Re: Multiple return values hbaker@netcom.com (1997-04-18) |
Re: Multiple return values fjh@mundook.cs.mu.OZ.AU (1997-04-18) |
Re: Multiple return values (Mars Saxman) marssaxman%sprynet.com.antispam@nac (marssaxman) (1997-04-18) |
Re: Multiple return values preston@tera.com (1997-04-18) |
Re: Multiple return values jbuck@Synopsys.COM (1997-04-18) |
Re: Multiple return values smryan@mail.com (1997-04-20) |
Re: Multiple return values danwang@dynamic.CS.Princeton.EDU (1997-04-20) |
Re: Multiple return values smcadams@sprynet.com (steve mcadams) (1997-04-20) |
Re: Multiple return values tiggr@es.ele.tue.nl (1997-04-20) |
Re: Multiple return values hrubin@stat.purdue.edu (1997-04-20) |
Re: Multiple return values fjh@mundook.cs.mu.OZ.AU (1997-04-22) |
Re: Multiple return values roy@earthlight.co.nz (1997-04-22) |
[20 later articles] |
From: | smryan@mail.com (!@?*$%) |
Newsgroups: | comp.compilers,comp.lang.misc |
Date: | 20 Apr 1997 12:06:30 -0400 |
Organization: | The Programmer formerly known as S M Ryan |
References: | 97-04-091 97-04-109 |
Keywords: | design, comment |
> Many if not most programming languages allow procedures with
> multiple output arguments. For example, instead of
>
> (x, y) = foo(a, b);
>
> in C you can write
>
> foo(a, b, &x, &y);
These are semantically distinct. The second requires additional notions
such as variables, addresses, assignments, nonlocal side effects,
aliassing, etc.
--
| S M Ryan, Cupertino CA
| mail to: smryan@mail.com
[They're different, but I don't think the issues are very different. Consider
something like (y, x) = foo(x, y), where x and y may be passed by reference.
-John]
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.