Hi, if you change the repeat line to
repeat aFile read thisDir copy/deep [ it will work, as repeat modifies the block to be repeated. See also at http://www.rebol.com/docs/words/wrepeat.html the user comment from Ladislav. Didn't know this myself - until now. :-) Michael On Sun, 10 Apr 2005 21:36:25 +0300, <[EMAIL PROTECTED]> wrote: > > Hi, Rebolers! > > I am new in rebol scopes. So it seems, that it cause problems in > my recursive directory reading function. > Could somebody give me a bit more description about variable > scopes in following case: > > readChaptDir2: func [ thisDir ] [ > rez: copy thisDir > repeat aFile read thisDir [ > either #"/" = last aFile [ > repend rez [ "<br>dir:" join thisDir aFile ] > repend rez readChaptDir2 join thisDir aFile > ][ > repend rez [ <br> aFile ] > ] > > ] > return rez > ] > > Looking forward, > > Janeks > -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
