Salut, You are right. Formally, recursion can always be emulated with a data stack and a while loop. Using a recursive call, the data stack is managed automatically as data space is created for each recursion level. The cost in LabVIEW is efficiency.
A recursive call makes the code more simple to design. The recursive nature of the code is explicit which is not the case with a while loop. Other than that, there are no clear advantage for the recusive call. Jean-Pierre Drolet www.avensys.ca ----- Original Message ----- From: "Dominic Lavoie" <[EMAIL PROTECTED]> To: "Info-LabVIEW" <[EMAIL PROTECTED]> Sent: Friday, June 04, 2004 9:15 AM Subject: RE: Recursive Code Challenge Salut. Could someone explain in a simple way what are the advantages of making a function recursive instead of just making the data recursive(arrays or strings) and building one function to play with that data(while loops)?