On Mon, 30 Apr 2001, Yukihiro Matsumoto wrote:

> Hi,
> 
> In message "[ruby-talk:14339] gtk and Float/to_f"
>     on 01/04/28, Thomas Lundqvist <thomasl / ce.chalmers.se> writes:
> 
> |Hi! I experience the following strange behavior:
> |
> |> ruby -e 'puts "5.3".to_f + 1.0'
> |6.3
> |
> |> ruby -e 'require "gtk"; puts "5.3".to_f + 1.0'
> |6.0
> 
> Weird.  Platform information, please?
> Nothing changes on ruby 1.6.3 (2001-03-28) [i386-linux].
> 
> 							matz.

I have tried two platforms:

 ruby 1.6.3 (2001-03-19) [sparc-solaris2.8]
 gtk: 1.2.7
 SunOS 5.8 Generic_108528-06 sun4u sparc SUNW,Ultra-5_10

and (Debian stable dist.)

 ruby 1.4.3 (1999-12-08) [i386-linux]
 gtk: 1.2.7
 Linux 2.2.19 #1 Sun Apr 8 13:42:11 EST 2001 i586 unknown

Both have bug. Maybe gtk 1.2.7 is broken?

It is a little bit scary that a dynamically loaded extension can
brake the basic language constructs...

/Thomas

-----------------------------------------------------------------------
Thomas Lundqvist, Ph.D. Student    thomasl / ce.chalmers.se
Dept. of Computer Engineering      http://www.ce.chalmers.se/~thomasl/
Chalmers University of Technology
SE-412 96 Gothenburg               Phone: +46 31 772 1165
SWEDEN                             Fax:   +46 31 772 3663
-----------------------------------------------------------------------