seattlerb/ruby2ruby

'rescue'

twelvechairs opened this issue · 1 comments

sexp=RubyParser.new.process("begin 1 rescue 2 end") #same as "1 rescue 2"
p sexp #=> s(:rescue, s(:lit, 1), s(:resbody, s(:array), s(:lit, 2)))
Ruby2Ruby.new.process(sexp)

=> C:/Ruby193/lib/ruby/gems/1.9.1/gems/sexp_processor-3.2.0/lib/sexp_processor.rb:148: stack level too deep (SystemStackError)

not at all sure why this happens.... thought you might want to know.

Details:
Windows.
Ruby 1.9.3
ruby2ruby-1.3.1 (gem)
sexp_processor-3.2.0 (gem)
ruby_parser-2.3.1(Gem)

my bad sorry.... I realised i'd defined a 'method missing' for Sexp which was causing this problem. Probably not a good idea on my part and too marginal to be worth caring about..... Apologies for the timewaste