Improving assert-printing in DMD

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Fri Oct 2 06:21:51 PDT 2015


On 10/02/2015 08:31 AM, Dicebot wrote:
> On Friday, 2 October 2015 at 12:27:11 UTC, Per Nordlöw wrote:
>> What about the case
>>
>> assert(f(expr))
>> assert(symbol)
>>
>> Should `op` be empty in that casesor should we use yet another overload
>>
>>     onAssertFailed(e, __FILE__, ...)
>>
>> for that case?
>
> empty op for unary overload

Even better. -- Andrei


More information about the Digitalmars-d mailing list