Conditional compilation inside asm and enum declarations
bearophile
bearophileHUGS at lycos.com
Tue Jul 14 18:12:36 PDT 2009
Walter Bright:
> Using the bottom two bits as flags (because the pointers were aligned)
> is not all that uncommon. I've seen it done by major companies on some
> major, very successful projects.
That's done often enough, one or two bits in tagged pointers are useful to implement various data structures (and they are used by garbage collectors too). I even used tagged pointers once in D, using memory allocated from the C heap.
Bye,
bearophile
More information about the Digitalmars-d
mailing list