[PATCH wayland] Add "enum" attribute to "arg" elements
Pekka Paalanen
ppaalanen at gmail.com
Thu Apr 23 23:44:12 PDT 2015
On Thu, 23 Apr 2015 10:44:50 -0700
Bill Spitzak <spitzak at gmail.com> wrote:
> 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.
If you say that, you again imply that the annotation must affect
codegen (the generated API). The question explicitly assumed it must not
affect codegen.
Thanks,
pq
More information about the wayland-devel
mailing list