On 04/22/2015 11:38 PM, Pekka Paalanen wrote:
Given this and that they must not affect codegen, what are the remaining differences between enums and bitfields? Enum can be an int, but a bitfield cannot? Is it worth to have the distinction in the language at all?
The distinction is that in a bitfield A|B is valid value to pass, but that is not a valid value to pass for an enumeration. Bindings really want this information.
This information must be on the enumeration itself, not on the argument. I don't know of any language where the validity or return type of doing A|B depends on where the expression is being used.
_______________________________________________ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel