[#3006] mismatched quotation — "stevan apter" <apter@...>

ruby documentation uses a punctuation convention i've never seen

13 messages 2000/05/27

[ruby-talk:02617] irb for 1.5.x

From: Andrew Hunt <Andy@...>
Date: 2000-05-03 03:59:24 UTC
List: ruby-talk #2617

Hi everyone,

I'm trying to get irb to work with the latest Ruby.

1) First problem I get is ruby-token.rb:260:in `def_token': undefined
   method `intern' for :TkCLASS:Symbol (NameError)

   I changed 

   TkSymbol2Token[token_n.intern] = token_c

   to read:

   TkSymbol2Token[token_n] = token_c

  and it *seems* to work.

2) However, any syntax error blows it out of the water.  With 1.4.3 it
simply reports the error, but with the latest it dies:

  irb(main):001:0> require "nosuchfile"
  (irb):1:in `require': No such file to load -- nosuchfile (LoadError)
          from (irb):1:in `irb_binding'
          from /irb/workspace-binding.rb:56:in `irb_binding'
          from /irb/workspace-binding.rb:56

Is this something simple?  

Also, I am planning on documenting irb for the book -- would it be a 
good idea to include it in the base distribution?

Thanks as always,

/\ndy

In This Thread

Prev Next