ckloi / Scripting-Languages

0 stars 1 forks source link

arg problem #36

Closed ckloi closed 7 years ago

ckloi commented 7 years ago

arg: An input to some running computation, say a sum. In the course of recursion, the output of walk() (initially, the output of f()) will be input to f().

Dont know whether should we use arg + something instead of return..

because once you modify the argument , the function is immediately return tho

ckloi commented 7 years ago

when you do print(walk("a", nbyte, 1)) , it will output some "wrong value"

Ajfaust commented 7 years ago

Using what we have now? Or with the arg+ something?

ckloi commented 7 years ago

maybe we should ask on monday

tihju commented 7 years ago

why in nbyte(), why we don't need to check if f is file or directory before we get the file size?

Ajfaust commented 7 years ago

Because we do that in walk, which will call nbyte. Idk if he will be calling nbyte anywhere else though