[#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:00120] finished simple script

From: Julian Fondren <julian@...>
Date: 1998-12-17 16:31:50 UTC
List: ruby-talk #120
Greetings,

If anyone is interested, here is the finished script (which was created to
work _exactly_ as a c++ tutorial program I made ages ago ;-)


#!/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''


cya,

In This Thread

Prev Next