associative arrays with manual memory management
Ilya Yaroshenko via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Wed Aug 26 06:30:03 PDT 2015
On Wednesday, 26 August 2015 at 13:12:38 UTC, Per Nordlöw wrote:
> On Wednesday, 26 August 2015 at 09:20:33 UTC, Ilya Yaroshenko
> wrote:
>> Only if you would use a shared allocator like Mallocator or
>> GCAllocator.
>
> Are there cases where a non-shared version of Mallocator or
> GCAllocator is motivated?
Mallocator and GCAllocator are always shared.
Possibly D will have ThreadLocalGCAllocator in the future.
>
> If not could, maybe the shared-ness could be inferred?
`aa` function just uses shared type for shared argument and vise
versa.
GCAllocator.instance and Mallocator.instance. are always shared.
More information about the Digitalmars-d-announce
mailing list