Article View: comp.std.c
Article #3389Re: How to eliminate GOTO?
From: Goran Larsson
Date: Tue, 29 Aug 1995 23:00
Date: Tue, 29 Aug 1995 23:00
20 lines
1142 bytes
1142 bytes
In article <DE02nC.B58@eskimo.com> mag@eskimo.com (mag) writes:
> One of the excellent uses of goto is to force a single exit point for a function.
What is so excellent about a single exit point in a function?
> int ISomefunction(int iSomeArg)
> {
> int iRetVal = 0;
^
Why are you trying to make C look like FORTRAN?
What a crazy world - some programmers try to hide data types to make
updates easier - some try to encode data types in variable names and
function names to make updates a nightmare...
--
Goran Larsson Phone: +46 13 299588 FAX: +46 13 299022
Approve AB +46 589 12810 +46 589 16901
hoh@approve.se
I was an atheist, until I found out I was God.
Technical Details
Message-ID:
<1995Aug29.230015.24358@lorelei.approve.se>Path:
arc1-ca.pugleaf.net!mn4.swip.net!lorelei!hohReferences:
<41iebe$kec@news0.rain.rg.net> <41pm80$skp@inferno.mpx.com.au> <DE02nC.B58@eskimo.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c,comp.lang.c Path: arc1-ca.pugleaf.net!mn4.swip.net!lorelei!hoh From: hoh@lorelei.approve.se (Goran Larsson) Subject: Re: How to eliminate GOTO? Message-ID: <1995Aug29.230015.24358@lorelei.approve.se> Organization: Home of the Hacker of Hackefors References: <41iebe$kec@news0.rain.rg.net> <41pm80$skp@inferno.mpx.com.au> <DE02nC.B58@eskimo.com> Date: Tue, 29 Aug 1995 23:00:15 GMT