_based pointers in D?

Robert robert.muench at robertmuench.de
Thu Jun 3 06:11:48 PDT 2010


Hi, is there a similar construct like a _based pointer in D?

type __based( base ) declarator

void *vpBuffer;

struct llist_t
{
    void __based( vpBuffer ) *vpData;
    struct llist_t __based( vpBuffer ) *llNext;
};

The pointer vpBuffer is assigned the address of memory allocated at 
some later point in the program. The linked list is relocated relative 
to the value of vpBuffer.
-- 
Robert M. Münch
http://www.robertmuench.de



More information about the Digitalmars-d mailing list