[Issue 8765] assert should print the source code for the condition when no message argument present

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Jun 19 10:55:35 PDT 2014


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

--- Comment #11 from Walter Bright <bugzilla at digitalmars.com> ---
(In reply to Val Markovic from comment #0)
> Currently I just get "unittest failure" instead of the condition
> source, which is useless.

It gives the file/line, which is not useless:

1. editors, IDEs, etc., can take you right to the source code of the error

2. assert checks can add a great deal of bloat to the executable - the current
implementation tries to minimize that. Adding expression strings to all of them
will dramatically increase the size of an executable

I just do not understand why file/line is not sufficient.

--


More information about the Digitalmars-d-bugs mailing list