www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - _based pointers in D?

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
Jun 03 2010