From: Geoff Belknap <geoff.belknap / gmail.com>
Subject: bug in TkComm::list?
Date: Thu, 15 Jul 2010 07:21:09 +0900
Message-ID: <04a1455d5ccf72f1186aee5374ad6361 / ruby-forum.com>
> I'm running into a weird behavior while using TkComm::list and
> TkComm::tk_tcl2ruby

Those methods convert a tcl string to a Numeric object, if the string
can be a description of a numeric value.
If you want to get each element as a string, please use TkComm.simplelist.
----------------------------------------------
irb(main):001:0> data = "2.00 {21 22   23} 2"
=> "2.00 {21 22   23} 2"
irb(main):002:0> TkComm::list(data)
=> [2.0, [21, 22, 23], 2]
irb(main):003:0> TkComm::simplelist(data)
=> ["2.00", "21 22   23", "2"]
----------------------------------------------
-- 
Hidetoshi NAGAI (nagai / ai.kyutech.ac.jp)