Re: Last frame?

2011-06-26 Thread bearophile
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.

Re: Last frame?

2011-06-26 Thread 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, but I'd say that's a bug in the exception handling cod

Last frame?

2011-06-26 Thread bearophile
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