On 6/21/15 4:47 AM, Dicebot wrote:
6. Usage of ternary is not always clear / justified. In `IAllocator` it
is explained and makes sense but there are things like
http://erdani.com/d/phobos-prerelease/std_experimental_allocator_bitmapped_block.html
("Ternary empty() - Returns true iff no memory is currently allocated
with this allocator"). I am still not sure why it is used there instead
of simple boolean.

Founds a bunch of issues with the docs indeed; switching the static interface from bool to Ternary (for the sake of unification with IAllocator) was a last-minute thing.

https://github.com/D-Programming-Language/phobos/commit/16f5a5631cf1f2eeea3779785c3ea17682b8ff45


Andrei

Reply via email to