[Tutor] Stack unwind using exceptions.
Noufal Ibrahim
noufal at nibrahim.net.in
Sat Jul 4 21:56:50 CEST 2009
Hello everyone,
Would it be considered unorthodox or 'wrong' in some sense for me to use
an exception to unwind the stack and return to a caller for a recursive
function?
I need to do a depth first search and when I find the right element to
just stop the whole thing, and get back to the caller saying that I
found it.
TIA.
--
~noufal
http://nibrahim.net.in/
More information about the Tutor
mailing list