From: james_b Date: 2003-08-07T21:59:20+09:00 Subject: Re: Ruby Query Robert Klemme wrote: > schrieb im Newsbeitrag > news:221d8dbe.0308062037.2a5558f2@posting.google.com... > >>Ruby is a nice and expressive language. Now my favourite Ruby site is >>http://whytheluckystiff.net/articles/2003/08/04/rubyOneEightOh >> >>I have a query about Ruby >>1) Like Python can I increase the maximum depth of Ruby Interpreter >>Stack? This will help to calculate factorial(1000) recursively. >>Without increasing the recursion limit, it will not possible to >>calculate factorial(1000) recursively with Ruby 1.8 (Win 98). It is >>possible to do the same with Python. > > > Hmmm... Calculating factorial recursively is really inefficient and after > all, Ruby is not a functional language although it has some features of > them There were a few responses to Srijit's question, all of them, it seems, explaining why he was solving the problem the "wrong" way. None of the responses (unless I missed it, in which case I apologize) actually anaswered his original question. So: can one increase the maximum depth of the Ruby interpreter stack? James