Re: Good Use of GOTO

new topic     » goto parent     » topic index » view thread      » older message » newer message

Bernie Ryan wrote:
> 
> Jim:
> 
>     Why can't any of these GOTO's be replaced by calls to functions ? 
> 

Because they are making the main function return? How would you have a function
return, not to its caller, but its caller's caller?

Also, the need to pass arguments to helper functions via the stack is lightly
slower. In most cases one probably doesn't care about that.

> 
> Bernie
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu