Re: Code thats out there!

From: Naved A Surve (surve_n@poincare.cs.jhu.edu)
Date: 06/19/95


In message <199506191604.RAA15252@fuji.ptf.hro.nl> you said:

> It should be possible to use a union of a bitfield and a bitvector so
> you can use both systems at the same time.

Actually, that is running into undefined behaviour in C.  If you have a
structure of bitfields you don't know the order in which those bits are
packed into words; that is system dependant.  To top that off, writing data
to one union member and reading from another is also undefined.


-Naved


-------------------------------------------------------------------------
Naved A. Surve <surve_n@jhu.edu>             The Johns Hopkins University
<URL:http://server.cs.jhu.edu/~surve_n/>     Baltimore, MD



This archive was generated by hypermail 2b30 : 12/18/00 PST