lua-users home
lua-l archive

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


> The third option, aTableWithStringKeys, looks the most convenient :)

Yes, from the library binding perspective. But IMHO this is not the
most important point.
I was supposing (this is the case in my projects) that there exists a
unique function, typically written in C, that converts a string or
table of strings into an integer value, given the enumeration type
information.

So the real choice should be made on the ease of use (from the library
user point of view) rather than the ease to implement.