[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: switch statement
- From: "Michael T. Richter" <mtr@...>
- Date: Mon, 7 Dec 1998 17:59:54 +0000
> 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 <[email protected]> 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