Daurnimator wrote: > print(ffi.new("MyType",ffi.C.bar)) -- cdata<enum 95>: 1 > > Is there any way it could show "cdata<enum 95>: bar"? > (or even "cdata<MyType>: bar") That's a bit expensive, since there's no inverse table for that. Also, enum constant keys are unique, but values are not. --Mike