BUG: error when using array last in a command for a Button in Tk (Ruby 1.8-pre5)

Hi,

first usenet-post ever, lets se if I can get it right.
The following code:

require 'tk’
root = TkRoot.new
button = TkButton.new(root) {
text 'tjo’
command proc {
[3,2,3,4]. each { |a|
puts a

decommenting the line below will remove the error

5

 }

}
pack
}

generates an error when you press the button.
Error: /usr/lib/ruby/1.8/tk.rb:274:in _get_eval_string':undefined methodarray2tk_list’ for TkComm:Module

ruby 1.8.0 (2003-07-28) [i686-linux-gnu]
pre5

/Daniel Forchheimer (upiom)

Hi,

···

From: Daniel Forchheimer reklambrevlada@yahoo.com
Subject: BUG: error when using array last in a command for a Button in Tk (Ruby 1.8-pre5)
Date: Thu, 31 Jul 2003 08:35:31 +0900
Message-ID: bg9k26$com$1@green.tninet.se

generates an error when you press the button.

It’s already fixed on CVS. Thank you for your report.

                              Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)