helpful runtime error messages

spir denis.spir at gmail.com
Tue Dec 14 09:48:14 PST 2010


Hello,


Am I the only one who gets, as only kind of runtime errors, spectacularly helpful messages like:

int f () {return 0;}
void main () {
    assert (f() == 1);
}
==>
spir at o:~/prog/d/Text$ ./__trials__
core.exception.AssertError at __trials__(44): Assertion failure
----------------
./__trials__() [0x804bb86]
./__trials__() [0x8049642]
./__trials__() [0x804960b]
./__trials__() [0x804bd76]
./__trials__() [0x804bcd0]
./__trials__() [0x804bdba]
./__trials__() [0x804bcd0]
./__trials__() [0x804bc76]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0x292bd6]

Thankfully, D is a static language, so that I have rather few runtime errors. But what am I missing to get a stack trace? Sometimes, I don't even have the (last) faulty line of code (dunno why).


Denis
-- -- -- -- -- -- --
vit esse estrany ☣

spir.wikidot.com



More information about the Digitalmars-d-learn mailing list