On 15.06.2012 16:17, bearophile wrote:
Even if this version is not documented in Phobos docs (because the inliner someday will be better), today it allows methods that must be fast like Nullable.get() to be inlined (but I have not tested this), regaining the lost performance.
If that is sole concern, I suggest do a pull that makes enforce vs assert decision accessible from the outside:
NotNull!(T, NotNull.Strict) //asserts NotNull!T //throws -- Dmitry Olshansky
