Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: variable scopes and recursive func

From: sags:apollo:lv at: 12-Apr-2005 21:25

Hi, Michael! What I want to get is negative depth counter and control to do not iterate deeper than depth parameter. And I actualy did the same like in your example. All that rez variable is just for debugging and studying purposes yet ;-) What is my problem - that in rez output I can't see the depth variable from line: repend rez [ "<br>dir:" join thisDir aFile depth + 1 ] f.ex.: dir:/c/www/sitex/02setup/Test2/5/c/www/sitex/02setup/Test2/ dirinfo.txt dir:/c/www/sitex/02setup/Test2/test3/6/c/www/sitex/02setup/Test2/test3/ dirinfo.txt At the end of line dir:... should be a number! It is why I started to play with curDepth... Janeks On 12 Apr 2005 at 1:05, Michael Berg wrote: