From: Tobias Reif Date: 2001-11-22T03:19:14+09:00 Subject: [ruby-talk:26050] call_myself Hi all, sometimes, methods call itself inside. ("Recursion"?") --- the example we all know--- def fact(n) if n == 0 1 else n * fact(n-1) end end ------------------- Sometimes, this is not obvious, because there might me a lot of other code. def some_method arg # many LOC # some_method mod_arg end Is there something that makes it clear that the method calls itself? def fact(n) if n == 0 1 else n * call_myself(n-1) end end ... (or equiv) would be great for understanding programs, especially for longer methods. Tobi -- Tobias Reif http://www.pinkjuice.com/myDigitalProfile.xhtml go_to('www.ruby-lang.org').get(ruby).play.create.have_fun http://www.pinkjuice.com/ruby/