Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

TraceExceptions quirks

Moderators: kris

Posted: 12/18/09 15:51:19

I'm not sure if this is a tango problem or a dmd compiler limitation/bug, but it seems placing the import inside a 'debug' section doesn't work. Although inside a 'version' section works fine.

Also when initialization fails on windows (e.g. if the import is left in on a release build) it prints an error message to stdout. This caused a bit of confusion for me since the program I'm working on is run automatically and uses stdio for communication. At the very least it seems like a good idea for the message to use stderr. It looks like the linux version already uses fprintf(stderr...

Author Message

Posted: 12/18/09 17:41:41

I found that using stdout already has a bug report as ticket #1682.

Posted: 01/13/10 08:44:29

Yes you're right ... such errors should be emitted to stderr instead. Thanks!