🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3624

Re: Wishful thinking: return-parameter

#3624
From: halasz
Date: Thu, 03 Aug 1995 03:23
13 lines
764 bytes
In article <1995Aug2.080237.17479@dcs.warwick.ac.uk>, A.Main@dcs.warwick.ac.uk (Zefram) writes
+ ....
+ int fn() ret
+ {
+  if(some_error_condition()) { ret=-1; goto end; }
+  /* ... */
+  end:
+ }
+ 
+ which is much more disgusting....

which is much better, for there openlie is "goto", not one hidden
under "return".
Technical Details
Message-ID: <3vpffj$qnc@caip.rutgers.edu>
Path: arc1-ca.pugleaf.net!caip.rutgers.edu!not-for-mail
References: <3ver2u$8bk@caip.rutgers.edu> <3vg8l8$5sd@myst.plaza.ds.adp.com> <1995Aug2.080237.17479@dcs.warwick.ac.uk>

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: 2 Aug 1995 23:23:31 -0400
Organization: Rutgers University
Distribution: world
Message-ID: <3vpffj$qnc@caip.rutgers.edu>
References: <3ver2u$8bk@caip.rutgers.edu> <3vg8l8$5sd@myst.plaza.ds.adp.com> <1995Aug2.080237.17479@dcs.warwick.ac.uk>
NNTP-Posting-Host: caip.rutgers.edu