lua-users home
lua-l archive

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

The whole idea is longer than I feel like repeating here and now. It does allow operations like you mention by use of "non-family" enums.

It has been discussed on the list earlier, and concensus was that there's no need. C API enums can be done with Lua strings instead. I still hold my position on this, though (and can repeat the discussions if someone sees necessary).


Enrico Colombini kirjoitti 10.6.2009 kello 20:59:

Asko Kauppi wrote:
Personally, I am of the opinion that bitops are for enums and not for numbers.

Apart from many data processing applications... as an example, consider the case where I open a bitmap file and want to apply some algorithm to 4-bit pixels.