C:/ruby/lib/ruby/1.7/tk.rb:196: warning: default `to_a' will be obsolete

Rubies:

Here’s the offending line:

def list(val)
tk_split_list(val).to_a
end

My versions are:

ruby 1.7.3 (2002-10-12) [i386-mswin32]
tk.rb # $Date: 2002/10/02 06:02:16 $

I’m taking warnings seriously, and would like to get rid of this one. But if
I just comment out the to_a, like this…

def list(val)
tk_split_list(val) # .to_a
end

…then things downstream break.

I would download the latest RubyTk, just to look for it, but I can’t find
its tarball. What’s with all the links going nowhere? Where is RubyTk’s RAA
entry??

···


Phlip

Here’s the offending line:

def list(val)
tk_split_list(val).to_a
end

My versions are:

ruby 1.7.3 (2002-10-12) [i386-mswin32]
tk.rb # $Date: 2002/10/02 06:02:16 $

Same on:

ruby 1.8.0 (2003-05-15) [i386-mswin32]
tk.rb # $Date: 2003/04/03 05:25:00 $

It’s dropping into Kernel#to_a and the warning is
serving its purpose: - Causing fear and panic
throughout the land :wink:

I would download the latest RubyTk, just to look for it,
but I can’t find its tarball. What’s with all the links
going nowhere? Where is RubyTk’s RAA entry??

It’s in source distro’s (from e.g. ruby-lang.org)
or you could pick it out from CVS if you’re into
that kind of thing.


Phlip

daz

···

“Phlip” phlipcpp@yahoo.com wrote: