David Nadlinger:
> Sorry, I don't quite understand the problem â the exception message
> describes what happened, and the stack trace points to the location. The
> only thing that strikes me as strange here is that file.foo itself isn't
> included in the backtrace,
Right, that's my problem.
Sorry, I don't quite understand the problem – the exception message
describes what happened, and the stack trace points to the location. The
only thing that strikes me as strange here is that file.foo itself isn't
included in the backtrace, but I'd say that's a bug in the exception
handling cod
I have recently closed this bug report about File error messages:
http://d.puremagic.com/issues/show_bug.cgi?id=4911
Because now this program gives a better error message:
import std.stdio: File;
void foo() {
auto f = File("test.raw", "r");
f.write("hello");
}
void bar() {
foo();
}
v