IAllocator

Rikki Cattermole via Digitalmars-d digitalmars-d at puremagic.com
Sun Jan 3 20:50:49 PST 2016


On 04/01/16 11:44 AM, Andrei Alexandrescu wrote:
> https://issues.dlang.org/show_bug.cgi?id=15509 is up. Any takers? -- Andrei

Now I'm worried, this will break a lot of my code.
I'm just not convinced that RefCounted is the correct tool for this job.

It changes the allocator type. IAllocator is an interface for a reason.
It allows swapping things out without worrying about implementation and 
using templates.

If you go this route, I want a SwappableAllocator implementation like 
SwappableImage[0] is.

[0] 
https://github.com/rikkimax/alphaPhobos/blob/master/source/std/experimental/graphic/image/interfaces.d#L205


More information about the Digitalmars-d mailing list