[#113] Re: ruby 1.1d0 released — matz@... (Yukihiro Matsumoto)
Hi.
7 messages
1998/12/16
[#127] very very NEWbie — "Bryce" <crowdog@...>
Ok, I'm having trouble with an extremely simple class.
5 messages
1998/12/20
[#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.
[#169] hah, check these errors
— Julian Fondren <julian@...>
1999/01/05
/usr/lib/libm.so.0.1: Undefined symbol `__GLOBAL_OFFSET_TABLE_' referenced
[#170] Re: hah, check these errors
— matz@... (Yukihiro Matsumoto)
1999/01/05
Hi.
[#171] another question about Makefiles
— Julian Fondren <julian@...>
1999/01/05
Hello,
[#172] Re: another question about Makefiles
— matz@... (Yukihiro Matsumoto)
1999/01/05
Hi.
[#174] some more information
— Julian Fondren <julian@...>
1999/01/06
greetings,
[#175] Re: some more information
— matz@... (Yukihiro Matsumoto)
1999/01/06
Hi.
[#179] Re: some more information
— matz@... (Yukihiro Matsumoto)
1999/01/07
In message "[ruby-talk:00175] Re: some more information"
[#140] ruby 1.3 released — matz@... (Yukihiro Matsumoto)
Hi, all.
10 messages
1998/12/24
[#141] Re: ruby 1.3 released
— Clemens Hintze <c.hintze@...>
1998/12/24
On 24 Dec, Yukihiro Matsumoto wrote:
[#143] Re: ruby 1.3 released
— matz@... (Yukihiro Matsumoto)
1998/12/25
Hi.
[#148] inability to load extension modules in 1.2, core dump
— Julian Fondren <julian@...>
1998/12/27
Ok.. 1.1d9 worked with no problems, and no significant or relevent changes
[#149] Re: inability to load extension modules in 1.2, c ore dump
— Clemens Hintze <c.hintze@...>
1998/12/27
On 27 Dec, Julian Fondren wrote:
[ruby-talk:00118] Re: STDIN integer assignment
From:
Clemens Hintze <c.hintze@...>
Date:
1998-12-17 09:55:08 UTC
List:
ruby-talk #118
On 16 Dec, Julian Fondren wrote:
> Hello,
>
Hello,
> in the following script, how would I be able to have the input along the
> lines of ``10 100 <ENTER>'' assign ans1 to 10 and ans2 to 100?
>
>
[...]
I do such things as follows:
ans1 = ans2 = nil
ans1, ans2 = $1.to_i, $2.to_i if STDIN.gets =~ /(\d+)\s+(\d+)/
invalid_input if not ans1 or not ans2
or
if STDIN.gets =~ /(\d+)\s+(\d+)/
ans1, ans2 = $1.to_i, $2.to_i
else
invalid_input
end
The first example has the advantage, that ans1 and ans2 are already
initialized.
[...]