Article View: comp.std.c
Article #3417Re: GOTO single exit point (was: Re: How to eliminate GOTO?)
From: Hoshi Takanori
Date: Wed, 13 Sep 1995 08:10
Date: Wed, 13 Sep 1995 08:10
11 lines
937 bytes
937 bytes
In article <42s5su$4h8@inforamp.net> pcurran@inforamp.net (Peter Curran) writes: > I'm not sure that this is exactly how I'd write this in a real-world > situation, but it does the job without multiple returns and without > deep nesting. I think your code is _ugly_. It depends on the order of initialization of variables A, B, C. What if you cnage the order to A, C, B, or add a new variable D between A and B? hoshi
Technical Details
Message-ID:
<HOSHI.95Sep13171048@ext221.sra.co.jp>Path:
arc1-ca.pugleaf.net!sran265.sra.co.jp!sran265!hoshiReferences:
<42s5su$4h8@inforamp.net>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sran265.sra.co.jp!sran265!hoshi From: hoshi@sra.co.jp (Hoshi Takanori) Newsgroups: comp.std.c,comp.lang.c Subject: Re: GOTO single exit point (was: Re: How to eliminate GOTO?) Date: 13 Sep 1995 08:10:47 GMT Organization: Software Research Associates, Inc.,Japan Distribution: world Message-ID: <HOSHI.95Sep13171048@ext221.sra.co.jp> References: <42s5su$4h8@inforamp.net> NNTP-Posting-Host: ext221.sra.co.jp In-reply-to: pcurran@inforamp.net's message of Sat, 09 Sep 1995 13:56:49 GMT