An important pull request: accessing shared affix for immutable data
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Sat Feb 13 17:27:40 PST 2016
On 2/13/16 5:01 PM, deadalnix wrote:
> What about storing the metadata at an address that is computable from
> from the object's address, while not being contiguous with the object
> allocated ? Is substracting a constant really the only option here ?
> (hint, it is not)
I'd say, you have at your disposal a flexible allocator framework so a
simple way to go about it would be to implement new allocators that take
various options about storing metadata. -- Andrei
More information about the Digitalmars-d
mailing list