From: Martin Weber Date: 2003-03-26T06:02:00+09:00 Subject: Re: Recursive methods allowed in Ruby? On Wed, Mar 26, 2003 at 05:50:47AM +0900, Krishna Dole wrote: > When I > try to run the following Ruby example, I get a "stack too deep" error. (Or > did I just make a stupid mistake?) > (.. snipsnap ...) I assume you run into an endless loop on '.', the current directory. list_dirs 'somedir' => x = '.' '.' is directory => list_dirs '.' => x = '.' '.' is directory => list_dirs '.' ... etc ... -Martin