- I was told that the following portion of code is deeply recursive. However I don't understand how - can someone explain?
- If so, what are the associated implications?
Note:
Trivial example
check:
# Grab some data held in a file
while ((ReadFile ()) != 0 ) {
if ((checkSomething ()) != 1) {
# value found, check file again
next check;
} else {
blah ($doo, $foo);
}
}
Update:
- Thank you for the correction.
What are the implications of the following, in terms of memory consumption - this is not recursion as far as I understand and after reviewing other questions:
sub D { .. } sub C { D (); } sub B { C (); } sub A { while (true) { B (); } }