lua-users home
lua-l archive

Re: switch statement

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


> The "efficient" way in Lua is to *index* a table of functions. something
> like:
[snip]
That is a really cute idiom. That's a keeper.
-- 
Michael T. Richter <mtr@ottawa.com> http://www.igs.net/~mtr/
 PGP Key: http://www.igs.net/~mtr/pgp-key.html
PGP Fingerprint: 40D1 33E0 F70B 6BB5 8353 4669 B4CC DD09 04ED 4FE8

AltStyle によって変換されたページ (->オリジナル) /