opDispatch, duck typing, and error messages
bearophile
bearophileHUGS at lycos.com
Thu Apr 21 15:47:02 PDT 2011
Adam D. Ruppe:
> c) Maybe Phobos could help out somehow? Another thing to!()
> annoys the living crap of me with is it's runtime errors. It, again,
> doesn't tell me where in my code the problem occurred.
>
> Perhaps have it take default __FILE__ and __LINE__ args to print out
> too? I think this can help both compile and runtime errors.
This is a more general problem of runtime errors, not just of to!(). Maybe exceptions nature should be changed a little so they store __FILE__ and __LINE__ on default (exceptions without this information are kept on request, for optimization purposes).
Bye,
bearophile
More information about the Digitalmars-d
mailing list