Re: Ruby stupidities
- From: "Michael Fellinger" <m.fellinger@xxxxxxxxx>
- Date: Fri, 31 Aug 2007 14:46:20 +0900
On 8/31/07, Damjan Rems <d_rems@xxxxxxxxx> wrote:
It is a matter of how you look at it:
irb(main):002:0> "abc"[0,1] == "a"
=> true
It's a matter that is fixed already, and waiting for you under the
christmas tree:
[manveru@pi ~]$ RUBYOPT= irb19
[RUBY_VERSION, RUBY_PLATFORM, RUBY_RELEASE_DATE]
# ["1.9.0", "i686-linux", "2007-08-28"]
"foo"[0]
# "f"
"foo"[0] == "f"
# true
^ manveru
.
- References:
- Ruby stupidities
- From: Kenneth McDonald
- Re: Ruby stupidities
- From: James Britt
- Re: Ruby stupidities
- From: Damjan Rems
- Ruby stupidities
- Prev by Date: Re: Ruby stupidities
- Next by Date: Re: rubygame
- Previous by thread: Re: Ruby stupidities
- Next by thread: Syslog facility
- Index(es):
Relevant Pages
|