Neat project: add pointer capability to std.bitmanip.bitfields
Steven Schveighoffer via Digitalmars-d
digitalmars-d at puremagic.com
Thu Dec 3 07:16:42 PST 2015
On 12/3/15 8:02 AM, Steven Schveighoffer wrote:
> An interior pointer is a pointer that is *properly aligned* but does not
> point at the first byte of a piece of memory. taggedPointer and
> taggedClassRef create *interior pointers*, not *misaligned pointers*.
> Andrei's proposal will create *misaligned pointers*. There is a huge
> difference.
>
I need to correct this. Andrei's proposal does not create misaligned
pointers (as he specifically calls for no shifting for such pointers),
just pointers to memory that is unrelated to the referenced memory. The
effect is the same -- you cannot rely on such pointers to keep the
memory in the GC.
-Steve
More information about the Digitalmars-d
mailing list