[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Possible enhancements for Lua 5.2
- From: GrayFace <sergroj@...>
- Date: Mon, 27 Jun 2011 07:27:06 +0700
On 26.06.2011 8:35, Andre Leiradella wrote:
When writing bindings I usually get the key string in
__index/__newindex metamethods and compute some hash with them which
then I use in a switch. It would be nice if I could save the time
spent in computing this hash since Lua already has one.
How about a table to map needed keys to switch indexes?
Sergey Rozhenko mailto:firstname.lastname@example.org