[#138] Thread Problems — Reimer Behrends <behrends@...>

I have been looking at the thread implementation of Ruby for the past

21 messages 1998/12/23
[#164] Re: Thread Problems — matz@... (Yukihiro Matsumoto) 1999/01/05

Hi.

[#167] Makefiles and -lcurses — Klaus.Schilling@... 1999/01/05

Julian Fondren writes:

[#168] Re: Makefiles and -lcurses — Julian Fondren <julian@...> 1999/01/05

OpenBSD has ncurses and it's own ocurses, and I prefer the latter.

[ruby-talk:00121] Re: finished simple script

From: gotoken@... (GOTO Kentaro)
Date: 1998-12-18 17:51:46 UTC
List: ruby-talk #121
Hi!

In message "[ruby-talk:00120] finished simple script"
    on 98/12/17, Julian Fondren <julian@imaji.net> writes:

>#!/usr/bin/env/ruby
>print "Input two numbers to multiply together: \n"
>ans1, ans2 = STDIN.gets.chomp.scan(/\d+/).collect { |x| x.to_i }
>
>while !ans1
>	if !ans1
>		ans1, ans2 = STDIN.gets.to_i, STDIN.gets.to_i
>	end
>end
>while !ans2
>	if !ans2
>		ans2 = STDIN.gets.to_i
>	end
>end

>curiously, ``.'' is translated to an integer as ``32''

Humm... I can't find such situation for the above script :-(
Would you tell me what input shows that ``.'' is translated to 32, 
or explain me the reason why you think so? 

-- gotoken

# private note: 
# I'm now considering your correction yet. sorry for delaying. > Julian

In This Thread