std.allocator ready for some abuse
Vladimir Panteleev
vladimir at thecybershadow.net
Fri Oct 25 05:05:43 PDT 2013
On Friday, 25 October 2013 at 08:09:30 UTC, Maxim Fomin wrote:
> This is impossible because with() has already another meaning.
I believe Andrei meant using the existing "with" statement as it
currently is defined in the language. The function setAllocator
would set the given allocator, and return a structure with a
destructor. The destructor should be called at the end of the
"with" block, and it will set the current allocator back to its
old value.
However, it appears that currently this usage of "with" is buggy:
http://d.puremagic.com/issues/show_bug.cgi?id=11351
More information about the Digitalmars-d
mailing list