Re: exiting deep nested loops

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

On 17 Feb 2002, at 12:44, Euler German wrote:

> 
> Agreed, though it looks more like a trick than a feature. I don't think 
> exit (n) would be so *hard* to do. 

It isn't, the goto wasn't hard to do either.

> Besides that, it'll be used right 
> where it's needed not somewhere else. blink

You mean right were *you* want it, and not were others would like it too. 
Exit() is a goto() in sheep clothing. 

Kat

> -- Euler
> 
> On 17 Feb 2002, at 15:13, Bernie Ryan wrote:
> 
> > 
> > If you have deep nested loops just
> > simply enclose the loop in a procedure
> > and just do a return to break out. This
> > also allows you to use multiple exit points.
> > That doesn't require changing the interpeter.
> > 
> > Bernie
> > 
> > 
> 
> 
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu