lua-users home
lua-l archive

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


> I'm a bit puzzled as to what to make of these
> results.

Make the inner function local:

>     local function z(r)

Otherwise the inner function is assigned to the
_global_ name z, replacing any previous value.  Your
function x is not re-entrant!

--
Wim


__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/