digitalmars.D - improving Error/Exception system
- Thomas Kuehne (21/21) Apr 05 2005 -----BEGIN PGP SIGNED MESSAGE-----
- Ben Hinkle (4/10) Apr 05 2005 Feels dicey. What would the switch error print or do with the values? Wh...
- Stewart Gordon (8/21) Apr 05 2005 I guess it would have to make a copy of the value.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 How about having more detailed Error messages? 1) ArrayBoundError: add the bad index current: suggestion: 2) SwitchError: add the uncaught value current: suggestion: Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFCUlrA3w+/yD4P9tIRAkqjAJ4mnuXPaFE9ff9xkpwyrLYlnO2ZBwCggl8/ dRDQ1hoHMGHXTbsbZQIgKNY= =UeWN -----END PGP SIGNATURE-----
Apr 05 2005
suggestion:Good idea.suggestion:Feels dicey. What would the switch error print or do with the values? What if the badValue was a temporary value on the stack that just became invalid because of the throw?
Apr 05 2005
Ben Hinkle wrote:Good question.suggestion:Good idea.suggestion:Feels dicey. What would the switch error print or do with the values?What if the badValue was a temporary value on the stack that just became invalid because of the throw?I guess it would have to make a copy of the value. An alternative would be to make _d_switch_error a template function.... Stewart. -- My e-mail is valid but not my primary mailbox. Please keep replies on the 'group where everyone may benefit.
Apr 05 2005