lua-users home
lua-l archive

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


Fair enough, Norman; my simulation of a hashed case construct only works
at global scope because nested functions are illegal. What I really want
is to have a table of *blocks*. Perhaps I can hack a better example with
Lua 3.0alpha's new userdata type... I'm just about to download it.

Meanwhile I'll look into benchmarking the global-only version for different
sized case lists. I'll post anything interesting I find out. As LHF said
we won't be getting a case construct just yet this is a bit academic I
suppose, but what the heck...

--  Mark Ian Barlow                Non-Linear Control Consultants Ltd.
    -----------------------------------------------------------------
    Mark@nlcc.demon.co.uk            Voice / Fax: +44 (0)1207 562 154