[REBOL] Re: variable scopes and recursive func
From: sags:apollo:lv at: 12-Apr-2005 23:53
Finaly I got what I wanted:
readChaptDir2: func [ thisDir depth
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 ]
I'll try to study those binding and scoping things.
I have feeling that there is a power and worth to do it.