1.
ruby/ext/tk/lib/tk/canvas.rb contains the same bug as canvas.rb shown below:
  def __item_val2ruby_optkeys(id)  # { key=>proc, ... }
    super(id).update('menu'=>proc{|i, v| window(v)})
  end
  private :__val2ruby_optkeys

There should probably be __item_val2ruby_optkeys.
This bug makes the demo in ruby/ext/tk/sample/demos-en/widget crash.

2.
The Matrix.rows functions doesn't work:

  irb(main):001:0> require 'matrix'
  => true
  irb(main):002:0> Matrix.rows([[1,2],[3,4]])
  NoMethodError: private method `init_rows' called for Matrixnil:Matrix
        from /ux/lib/ruby/1.9/matrix.rb:249:in `send'
        from /ux/lib/ruby/1.9/matrix.rb:249:in `initialize'
        from /ux/lib/ruby/1.9/matrix.rb:134:in `rows'
        from (irb):2

But the file matrix.rb is the same as in 1.8.2, where the function works.
Maybe it's just a compile error on my machine ?


Yukihiro Matsumoto wrote:

> Hi,
> 
> In message "Re: How do I do a bug report ?"
>     on Mon, 24 Oct 2005 06:47:01 +0900, Jean-Claude Arbaut
> <jcarbaut / laposte.net> writes:
> 
> |I tried the CVS version of ruby (1.9.0), and found this in file
> |ruby/ext/tk/lib/tk/canvas.rb:
> |
> |  def __item_val2ruby_optkeys(id)  # { key=>proc, ... }
> |    super(id).update('window'=>proc{|i, v| window(v)})
> |  end
> |  private :__val2ruby_optkeys
> |
> |The last line should be __item_val2ruby_optkeys I think, and
> |with that correction the Canvas example at
> |http://www.rubycentral.com/book/ext_tk.html works fine.
> 
> Thank you for the report.
> 
> |But where should I send this ? And is it really useful to
> |send bug reports about the CVS version ?
> 
> ruby-core mailing list is the best place.  But here in ruby-talk (or
> comp.lang.ruby newsgroup) is fine too.

OK, I'm quite new to this mailing list :-) Thank you.


> |Sorry if this is completely OT...
> 
> I don't think so.
> matz.
> 
>