lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



On Mar 21, 2005, at 18:34, Rici Lake wrote:

Are those gratuitous deviations?

Nope. They are a way to pass a function as a parameter.

 Or simply a logical way of saying which function to use?

Yes. To pass a function as a parameter.

Which is exactly the same thing as the for statement.

No. At least not for me. I don 't see any function I'm passing a parameter to. This is too confusing for me. I therefore try to avoid it.

At first glance there are 4 different ways to write a "for" loop ( "=", "in", "in ipairs()", "in pairs()" ). That's 3 too many for me :}

Cheers

--
PA, Onnay Equitursay
http://alt.textdrive.com/