On Sunday, 27 April 2014 at 13:10:42 UTC, David Nadlinger wrote:
On Sunday, 27 April 2014 at 11:13:42 UTC, Marc Schütz wrote:
Also, there is an `expand()` method, but no `shrink()`. Is that an oversight, or intentional?

If I remember correctly, this was discussed in the initial review of Andrei's proposal (just search the NG for std.allocator).

David

Thanks, found it. The argument was that shrink can not be @safe [1], but Andrei wasn't opposed to adding it if desired [2].

[1] http://forum.dlang.org/thread/l1nvn4$ca3$1...@digitalmars.com?page=1
[2] http://forum.dlang.org/post/l1st99$10ug$1...@digitalmars.com

Reply via email to