1. exiting deep nested loops
- Posted by Bernie Ryan <xotron at localnet.com> Feb 17, 2002
- 492 views
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
2. Re: exiting deep nested loops
- Posted by Euler German <efgerman at myrealbox.com> Feb 17, 2002
- 454 views
Agreed, though it looks more like a trick than a feature. I don't think exit (n) would be so *hard* to do. Besides that, it'll be used right where it's needed not somewhere else. -- 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 > > > >
3. Re: exiting deep nested loops
- Posted by Kat <gertie at PELL.NET> Feb 17, 2002
- 507 views
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. 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 > > > > > > >
4. Re: exiting deep nested loops
- Posted by Euler German <efgerman at myrealbox.com> Feb 17, 2002
- 496 views
On 16 Feb 2002, at 12:58, Kat wrote: > > 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. > > You mean right were *you* want it, and not were others would like it > too. Exit() is a goto() in sheep clothing. > > Kat > Sorry you understood this way. > > -- 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 > > > > > > > > >
5. Re: exiting deep nested loops
- Posted by mistertrik at hotmail.com Feb 17, 2002
- 472 views
>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. Why should we work around the interpreter ALL THE TIME. just a little change please Rob? ===================================================== .______<-------------------\__ / _____<--------------------__|=== ||_ <-------------------/ \__| Mr Trick
6. Re: exiting deep nested loops
- Posted by rforno at tutopia.com Feb 18, 2002
- 470 views
But you had to pass private variables to the procedure, and what if you modify them? ----- Original Message ----- From: "Euler German" <efgerman at myrealbox.com> To: "EUforum" <EUforum at topica.com> Subject: Re: exiting deep nested loops > > Agreed, though it looks more like a trick than a feature. I don't think > exit (n) would be so *hard* to do. Besides that, it'll be used right > where it's needed not somewhere else. > > -- 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 > > > > > > >