www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Right blame

reply bearophile <bearophileHUGS lycos.com> writes:
Is it possible to modify D error messages so when the precondition of a
function fails, dmd shows a (more useful) error at the calling point instead of
giving an assert error at the assert line number inside the precondition? Maybe
this is possible once dmd is able to generate the stack trace on Windows too.

Bye,
bearophile
Sep 15 2010
next sibling parent bearophile <bearophileHUGS lycos.com> writes:
Once there's a good stack trace, there is no need of this. So please ignore
this (I was sleepy).

Bye and sorry,
bearophile
Sep 16 2010
prev sibling parent Sean Kelly <sean invisibleduck.org> writes:
bearophile Wrote:

 Is it possible to modify D error messages so when the precondition of a
function fails, dmd shows a (more useful) error at the calling point instead of
giving an assert error at the assert line number inside the precondition? Maybe
this is possible once dmd is able to generate the stack trace on Windows too.
There should be a good stack trace on Linux and OSX now. If Linux is still an issue then -L--export-dynamic wasn't added to dmd.conf. I haven't checked 2.049 yet.
Sep 16 2010