New pointer type for GC

Etienne via Digitalmars-d digitalmars-d at puremagic.com
Tue May 27 07:03:42 PDT 2014


On 2014-05-27 9:52 AM, Idan Arye wrote:
> Please, no apostrophe. It'll mess syntax highlighters, and possible
> indenters.

How about #?

void# ptr;

void## ptr2 = &ptr;

assert(sizeof(ptr) == size_t + 3);
assert(szptr_t == sizeof(ptr));
szptr_t ptr2Val = cast(szptr_t) &ptr;
char magicNum = ptr2.magic;
dchar threadId = ptr2.thread;
char[3] poolId = ptr.pool;




More information about the Digitalmars-d mailing list