[Wayland-bugs] [Bug 82127] Add enum attribute to arg element to allow type safe protocol generation for languages that support enum as a type.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Aug 4 07:14:02 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=82127

--- Comment #1 from Pekka Paalanen <ppaalanen at gmail.com> ---
The complication here is that we use enums as plain integers, which means also
individual bits and sets of bits in bitfields.

The attribute would be good for making generated documentation link
automatically to the right enum definitions, but for type safety it is not that
simple. You probably need another attribute somewhere to say whether it is
allowed 'or' the values together, even if the result is not listed in the enum.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20140804/3e47192a/attachment-0001.html>


More information about the Wayland-bugs mailing list