The final word on GOTO (Don't I wis
    Peter da Silva 
    peter at ficc.uu.net
       
    Wed Oct 11 00:39:35 AEST 1989
    
    
  
The referenced article discusses replacing the Goto with a subroutine call.
The question is raised... why would that reduce clarity?
In a block-structured language it wouldn't. In C, however, there is the
problem of local variables.
Really:
	case whatever:
		special-code...;
		goto common;
Is a lot clearer than:
	case whatever:
		special-code...;
		common(a, whole, bunch, of, random, arguments);
		break;
-- 
Peter da Silva, *NIX support guy @ Ferranti International Controls Corporation.
Biz: peter at ficc.uu.net, +1 713 274 5180. Fun: peter at sugar.hackercorp.com. `-_-'
                                                                           'U`
Quote: Structured Programming is a discipline -- not a straitjacket.
    
    
More information about the Comp.lang.c
mailing list