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

Reply via email to