bitmaps as special enums?

Jelmer Vernooij jelmer at
Wed Feb 21 18:44:02 GMT 2007

On Wed, 2007-02-21 at 19:32 +0100, Stefan (metze) Metzmacher wrote:
> Jelmer Vernooij schrieb:> 
> > Bitmaps and enums are similar in a lot of cases. I'd like to merge them
> > into one type but have an attribute of some sort to indicate that
> > multiple values can be used. In other words, I'd like to make bitmaps a
> > special kind of enums.
> > 
> > This has the following advantages:
> > 
> >  * Less code duplication (distinction is mainly important for the
> > wireshark dissector and the print functions). 
> >  * Better portability (other IDL compilers don't support bitmaps).
> > 
> > Since you are the original author of this code, would you object to
> > having this changed? Or perhaps any disadvantages to the approach I'm
> > proposing that you can think of?
> Wasn't I the author of the 'bitmap' feature?
> I need to think about it, and will reply more detailed tomorrow...
oops! Sorry metze, I thought tridge had written "bitmap" after talking
to ronnie. Anyway, please consider that previous email directed to you
rather than tridge :-)


Jelmer Vernooij <jelmer at> -
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
Url :

More information about the samba-technical mailing list