> i keep hearing recursion should be avoided whiled devin' up
> an app. what
> exactly does this mean? don't call too many loops or
In order to define recursion we must first define recursion
Recursion simply means a function that calls itself -
like this
void foo(int a){
if (a){
//do some stuff with a
foo(a);
}
}
The reason that people don't like it is that you can blow your stack if you
are not careful
Regards,
Fergal Moran
--
WASP Technologies
http://www.wasptech.com
Wireless Application Solutions Provider
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/