Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > after upgrade: can't dup Fixnum

Reply
Thread Tools

after upgrade: can't dup Fixnum

 
 
Ferenc Engard
Guest
Posts: n/a
 
      08-27-2004
Hi all,

I have upgraded to ruby 1.8.2 (2004-08-24) [i386-linux], the former
version was (maybe) 1.8.1. After that, my app gave the error above.

Is this change is intentional? Or a bug? Should I make a workaround?

In fact, the offending script was the 'tcltkextlib.rb', the following
line:

def _load_shared_lib (lib_name, libbin_path, libtcl_path)
search_path = (libtcl_path)? libtcl_path.dup: []
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I have no idea how could be libtcl_path be a fixnum...

Bye,
Ferenc



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rubyzip - `dup': can't dup NilClass (TypeError) Luka Stolyarov Ruby 10 09-11-2010 12:13 PM
Float Arithmetic: Return A Fixnum When Float == Fixnum MaggotChild Ruby 6 12-02-2009 04:28 AM
Why Fixnum===Fixnum is false? Heesob Park Ruby 5 05-14-2009 12:31 AM
Strange constant resolution behaviour after Class#dup Martin Thiede Ruby 0 02-14-2009 09:07 PM
:s.respond_to?(:dup) && :s.dup raises François Beausoleil Ruby 1 04-05-2007 05:55 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57