<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Add enum attribute to arg element to allow type safe protocol generation for languages that support enum as a type."
href="https://bugs.freedesktop.org/show_bug.cgi?id=82127#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Add enum attribute to arg element to allow type safe protocol generation for languages that support enum as a type."
href="https://bugs.freedesktop.org/show_bug.cgi?id=82127">bug 82127</a>
from <span class="vcard"><a class="email" href="mailto:ppaalanen@gmail.com" title="Pekka Paalanen <ppaalanen@gmail.com>"> <span class="fn">Pekka Paalanen</span></a>
</span></b>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>