[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: case statement for Lua
- From: Mark@... (Mark Ian Barlow)
- Date: Mon, 14 Apr 1997 22:37:34 GMT
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