Improving assert-printing in DMD
Atila Neves via Digitalmars-d
digitalmars-d at puremagic.com
Mon Oct 26 08:17:35 PDT 2015
On Thursday, 1 October 2015 at 11:51:29 UTC, Per Nordlöw wrote:
> On Tuesday, 29 September 2015 at 21:02:42 UTC, Nordlöw wrote:
>> As a follow-up to
>>
>> https://github.com/D-Programming-Language/phobos/pull/3207#issuecomment-144073495
>
> I added a long comment about a new more flexible solution to
> this problem:
>
> https://github.com/D-Programming-Language/phobos/pull/3207#issuecomment-144701371
Would `onAssertFailed` have an implementation in druntime? If one
is included with D after this DIP is implemented, how would one
override the default behaviour? Do I understand it correctly that
`assert(a == b)` and `assert(a != b)` would call different
overloads? The reason I ask about that last one is because
there's no overloading of `!=` in D.
Atila
More information about the Digitalmars-d
mailing list