https://issues.dlang.org/show_bug.cgi?id=8411

Steven Schveighoffer <schvei...@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
                 CC|                            |schvei...@yahoo.com

--- Comment #3 from Steven Schveighoffer <schvei...@yahoo.com> ---
I have a further, more difficult use case for this:

if(auto d = calculateSomeDuration())
{
   display(d);
}

This is not as easily worked around with the current API.

Adding opCast!bool was easy enough: https://github.com/dlang/druntime/pull/1793

--

Reply via email to