It's mostly for allowing custom tag collaboration, but it's applicable
here to.  However, dependance on the environment is a road to tread
carefully.  With collaborative tags, it's a must, but recursion isn't
collaboration.

IMHO, recursion shouldn't care about depth.  If depth is important,
then an iterative solution is likely a better choice.  At the very
least, the depth should be passed as an argument:

function recurse(depth = 0) {
  if (isBase) {
    // do it
  } else {
    recurse(depth + 1);
  }
}

cheers,
barneyb

On 5/25/06, Ben Nadel <[EMAIL PROTECTED]> wrote:
> Barney,
>
> I didn't even know that method existed... Man, I really need to just go
> through a list of the built in functions to see what I don't know about.
>
> Thanks!
>
> .......................
> Ben Nadel
> www.bennadel.com
>

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 100 invites.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241515
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to