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 23:53

Thanks, Rebolers! Finaly I got what I wanted: readChaptDir2: func [ thisDir depth /local rez ] [ rez: copy "" repeat aFile sort read thisDir copy/deep [ if depth > 0 [ either #"/" = last aFile [ repend rez [ "<br>Dir:" join thisDir aFile ] repend rez readChaptDir2 join thisDir aFile (depth - 1) ][ repend rez [ "<br>file:" join thisDir aFile ] ] ] ] return rez ] I'll try to study those binding and scoping things. I have feeling that there is a power and worth to do it. brgds Janeks