On 09/23/2014 02:19 PM, Jason Ekstrand wrote:
In this case, what is the point of making the distinction? Why not just
specify everything as a bitfield? What do you gain from knowing that
two things will never be ORed together?
It is to make any attempt to or them together fail at compile time.
Also in some languages (C++) the non-bitfield version is easier to read
and write the source code for, and produces legible error messages when
mis-used.
_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel