[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: why goto ?
On Fri, Mar 09, 2001 at 02:28:53PM +0530, Harishankkar wrote:
> Hi Anurag,
> Goto is mainly used in functions where having multiple return points is not
This is a valid use of goto, but should be replaced by having a "name" for
it, so that it can be distinguished from a completely abusive use of goto,
so that compilers can continue to do optimizations in the presence of gotos.
In java, the "name" is try-catch-finally.