Article View: comp.std.c
Article #3584Re: Wishful thinking: return-parameter
From: halasz
Date: Mon, 31 Jul 1995 21:57
Date: Mon, 31 Jul 1995 21:57
21 lines
1487 bytes
1487 bytes
In article <DCL2LC.GBK@proteon.com>, jfw@proteon.com (John Woods) writes > Just WHAT does this add to the C language that is of value? Hint: looking > like FORTRAN or PASCAL are *not* of value. Not in and of itself, no, but there were useful things in Fortran in other languages to this day not implemented, for no other reazon than the fashion has gone against them. > You can perform work after calculating the final return value trivially > with the existing mechanism: > ... Not reallie relevant .... > and better yet, everything is spelled out in black and white. (Or black > and green, depending on your terminal.) The *only* conceivable advantage > of the proposed mechanism is to save a trivial amount of typing (as in > keyboard, not "type mechanism"), and it is much less subject to confusion. No, we are _obliged_ to uze a "goto"ish means for quitting the function, with valu-return needlesslie coupled with return. If return <expr> ; were not alreddie in the language, we coud spare ourselvs one context of implicit type-changing.
Technical Details
Message-ID:
<3vjjl6$7nm@caip.rutgers.edu>Path:
arc1-ca.pugleaf.net!caip.rutgers.edu!not-for-mailReferences:
<3ver2u$8bk@caip.rutgers.edu> <3vg8l8$5sd@myst.plaza.ds.adp.com> <DCL2LC.GBK@proteon.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!caip.rutgers.edu!not-for-mail From: halasz@caip.rutgers.edu Newsgroups: comp.std.c Subject: Re: Wishful thinking: return-parameter Date: 31 Jul 1995 17:57:58 -0400 Organization: Rutgers University Distribution: world Message-ID: <3vjjl6$7nm@caip.rutgers.edu> References: <3ver2u$8bk@caip.rutgers.edu> <3vg8l8$5sd@myst.plaza.ds.adp.com> <DCL2LC.GBK@proteon.com> NNTP-Posting-Host: caip.rutgers.edu