Object-oriented design patterns in the kernel, part 1
Posted Jun 16, 2011 8:11 UTC (Thu) by
gowen (guest, #23914)
In reply to:
Object-oriented design patterns in the kernel, part 1 by jond
Parent article:
Object-oriented design patterns in the kernel, part 1
void somefunction() {
do_something();
do_something_else();
important_cleanup_code();
}
Can do_something() fail for some reason? If so, why don't you check for it? If not, why do you think you need to worry about it throwing an exception?
Under what circumstances do you imagine that C++ do_something_cpp() will throw an exception but do_something_c() silently succeed?
(
Log in to post comments)