[#955] Ruby 1.4.3 — Yukihiro Matsumoto <matz@...>
Ruby 1.4.3 is out, check out:
1 message
1999/12/07
[#961] Ruby compileable by C++ compiler? — Clemens Hintze <c.hintze@...>
Hi,
8 messages
1999/12/10
[#962] Re: Ruby compileable by C++ compiler?
— matz@... (Yukihiro Matsumoto)
1999/12/10
Hi,
[#963] Re: Ruby compileable by C++ compiler?
— Clemens Hintze <clemens.hintze@...>
1999/12/10
Wei,
[#964] Bastion or SecurityManager for Ruby? — Clemens Hintze <clemens.hintze@...>
Hi,
15 messages
1999/12/10
[#966] Re: Bastion or SecurityManager for Ruby?
— nakajima kengo<ringo@...>
1999/12/10
Hello Clemens,
[#967] Re: Bastion or SecurityManager for Ruby?
— matz@... (Yukihiro Matsumoto)
1999/12/10
Hi,
[#989] a question about to_i — Friedrich Dominicus <Friedrich.Dominicus@...>
Sorry, I'm quite new to ruby. But I encounterd the following problem. If
17 messages
1999/12/19
[ruby-talk:00989] a question about to_i
From:
Friedrich Dominicus <Friedrich.Dominicus@...>
Date:
1999-12-19 07:42:44 UTC
List:
ruby-talk #989
Sorry, I'm quite new to ruby. But I encounterd the following problem. If I have a string "bla" and apply to_i to it I get 0. This seems to be quite strange because it is what it is a string so shouldn't an exeception be rissen or s.th simular. And how do you check if a string is a number then? I used: def is_integer?(potential_int) result = potential_int =~ /\D/ if !result return TRUE else return FALSE end end But I don't think this might be the right way. Could s.o give me a hand? Regards Friedrich