
10 Oct
2005
10 Oct
'05
9:26 p.m.
Ian McCulloch wrote:
Eric Niebler wrote:
Assert != exception.
Fine. But why not use an exception as part of the mechanism for saving some (hopefully) recoverable data?
Because exceptions cause unwinding, and that will potentially cause *lots* of code to execute. You don't want lots of code to execute when you're in an unstable state. You want to call your emergency clean-up code, dump core and die, immediately. -- Eric Niebler Boost Consulting www.boost-consulting.com