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

[REBOL] variable scopes and recursive func

From: sags::apollo::lv at: 10-Apr-2005 21:36

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