This should be more readable...


-----Original Message-----

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tomas Matousek

Sent: Tuesday, October 14, 2008 11:09 PM

To: [email protected]

Subject: [Ironruby-core] irb



We have recently implemented the last feature that prevented irb from running, 
so here it is:





C:\M1\Merlin\External\Languages\Ruby\ruby-1.8.6\bin>rbr -X:Interpret irb

irb(main):001:0> 1+1

=> 2

irb(main):002:0> puts <<end

irb(main):003:0" hello world

irb(main):004:0" end

hello world

=> nil

irb(main):005:0> require 'mscorlib'

=> true

irb(main):006:0> include System::Collections::Generic

=> Object

irb(main):007:0> l = List[Fixnum].new

=> []

irb(main):008:0> l.add 1

=> nil

irb(main):009:0> l.add 2

=> nil

irb(main):010:0> l.add 3

=> nil

irb(main):011:0> l

=> [1, 2, 3]

irb(main):012:0> l.each_with_index { |x,i| puts "#{i} -> #{x}" }

0 -> 1

1 -> 2

2 -> 3

=> [1, 2, 3]

irb(main):013:0> exit



Tomas

_______________________________________________

Ironruby-core mailing list

[email protected]

http://rubyforge.org/mailman/listinfo/ironruby-core


_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to