Am 28. Februar 2011 14:01 schrieb Rene Nussbaumer <[email protected]>:
> On Mon, Feb 28, 2011 at 1:30 PM, Michael Hanselmann <[email protected]> wrote:
>> -              None, _GetUnknownField)
>> +              None, 0, _GetUnknownField)
>
> Maybe use a constant here too (QFF_NONE) instead of 0? Make it a
> little bit more verbose but easier to read though. Or are there any
> reasons why this shouldn't be possible?

It's more code (line wrapping is already a pain) and it's pretty
common (e.g. in the Linux kernel) to set flag fields to zero when
nothing is set. So yes, it would be possible, but I'm strongly opposed
to it.

Michael

Reply via email to