[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: [sqr-users] Recursion in SQR





Hi, you can get tail recursion by using a stack adt that I wrote and 
provided to the sqrug.  (see http://www.dssltd.com |clients only|sqrug sqrug)
The stack limit is preset at 100 but recompiling will allow you to go as 
deep as your cpu's memory.

John Willson



Yuri Lakef <lakef250@yahoo.com> said:

> Greetings,
>  
> Will SQR allow calling the same function (procedure) recursively? 
>  
> I'd like to process a tree and print data to flat file.  I only want to 
call procedures to print record once I'm at the bottom-most level (i.e., no 
rows found where Parent_Node_Num is equal to a particular Tree_Node).  The 
particular tree I'm processing has up to 10 levels (call same procedure for 
each level for different TREE_NODE).
>  
> Thanks in advance!
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Small Business $15K Web Design Giveaway - Enter today
> 
> _______________________________________________
> sqr-users mailing list
> sqr-users@sqrug.org
> http://www.sqrug.org/mailman/listinfo/sqr-users
> 



-- 




_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users