truedat101 / dlang-sv-community

A community repository for stuff related to #dlang Silicon Valley Meetup group
http://www.meetup.com/D-Lang-Silicon-Valley/
2 stars 1 forks source link

dlang backgrace on NPTR exception DNE is confounding to new users #10

Open truedat101 opened 8 years ago

truedat101 commented 8 years ago

Debugging is hard if the concept of exception handling and backtraces falls apart when a NPTR is encountered.

Notes from the thread, tweeted by @bithavoc https://github.com/bithavoc https://news.ycombinator.com/item?id=10506884

This is a concern. What is the root cause?

truedat101 commented 8 years ago

Nice solution is discussed in the last couple of comments, and can be seen in action here:

http://dpaste.dzfl.pl/9370e5e6ba14

Dlang community should at least provide this little gotcha somewhere obvious, and the implications of using this approach. And it should clearly explain why this is needed, whereas other languages are able to deal with a similar error in a more friendly way.

truedat101 commented 8 years ago

What is solution on

truedat101 commented 8 years ago

Also, which compiler is the "fix" tied to? And what is the story behind this issue?