Re: Ruby stupidities



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

.



Relevant Pages

  • join the classical broken speed
    ... Try forgeting the segment's above waiting and Marty will ... Will you elect beyond the club, if Imam up condemns the ... Other neat bad wealths will rent accidentally no matter how ...
    (sci.crypt)
  • Re: Reflections on Money Management, Career Choices, and Poker
    ... no matter how mundane or repetitive the task. ... people get bored at poker is because they get lulled into just waiting and waiting for a ... limited ability he is. ... It really does matter what I say about him. ...
    (rec.gambling.poker)
  • =?iso-8859-2?q?Re:_Najlepsze_zespo=B3y_gotyckie?=
    ... perfectly possible that the patrols would catch him on the way out: ... that matter they might be waiting outside the door at this moment. ...
    (rec.sport.hockey)
  • Re: Volvo 2000 Diesel Stuck.
    ... try removing the injectors and pouring in Marvel Mystery Oil and waiting a ... it doesn't matter. ...
    (rec.boats.cruising)
  • [SLE] New wide screen 19" monitors vs. suse
    ... Has anyone tried the 19" wide screen monitors on a suse box yet? ... waiting for my 10.1 dvd to arrive. ...
    (SuSE)