lua-users home
lua-l archive

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


> What I'd like is f1's val upvalue to refer to constructor's local
> variable val.  Is this possible somehow through environments?

Can't you define 'gen1' inside the constructor?

-- Roberto