Thanks Rob, That is exactly what I wanted to know. I was afraid there would be some such complication. I will amend my treeDepth and other recursive tree functions along the lines you suggest.
---Liz -----Original Message----- Message: 5 Date: Thu, 15 Dec 2005 04:11:11 -0600 From: Rob Kennedy <[EMAIL PROTECTED]> Subject: Re: recursive function help To: Delphi-Talk Discussion List <[email protected]> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=UTF-8; format=flowed >> gurus out there might like to comment on this. >It saves passing the value, but it passes the address of the caller's >stack frame instead. There's a fair amount of magic to ensure that the >nested function has access to its parent's variables. I really don't >want to think about how convoluted that can get when the nested function >is recursive. <<CLIP>> >-- >Rob __________________________________________________ Delphi-Talk mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi-talk
