"Dale E. Martin" <[EMAIL PROTECTED]> writes:

> Is there some magic value I can write into "flag", that in combination with
> the understanding of how 64 bit pointers get truncated down to 48 bit
> virtual addresses that will allow me to store either a 7 byte string or a
> char * in the same space?

You could use the least significant bit(s) since pointers are aligned
on certain (4 byte?) boundaries.  I think Guile Scheme uses this same
trick (on 32 bits) to flag if the pointer stores an address or a small
integer value.  You might look into how they do it.

-Brett.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to