Re: Nested routines

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

Jason Gade wrote:
> 
> > Have you ever had to repeat a task over and over in a function that takes
> > multiple
> > local paramters and is only used within that one function?
> 
> Not that I can recall. I'd probably just make a separate function.
>

Have you ever used a language that supports nested routines? I suspect that it's
much like the for-in loop. Sure, you can program with out it, but once you use
it, you'll miss it.

One could ask, what can be done with a for-in loop that couldn't be done w/a
simple for loop? The answer is easy... nothing! But why use a for loop if you
have access to a for-in loop and your iterating a sequence?

Nested routines is the same thing.

--
Jeremy Cowgar
http://jeremy.cowgar.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu