Consider following program (test.rb):

puts 'aaabbbaaa'.match('aaa').length
puts 'aaabbbaaa'.match('x').length

With CRuby, the result or running is:

[08:49:31 ~] ruby test.rb 
1
test.rb:2: undefined method `length' for nil:NilClass (NoMethodError)

With IronRuby (revision 76):

[08:37:14 ~] rbx test.rb 
3
0

I apologize if this is a well-known issue and already on some to-do list

Robert Brotherus
Software architect
Napa Ltd
Tammasaarenkatu 3, Helsinki FI-00180
P.O.Box 470, Helsinki FI-00181

Tel.          +358 9 22 813 1 
Direct.      +358 9 22 813 611 
GSM         +358 45 11 456 02  
Fax.         +358 9 22 813 800 

Email: [EMAIL PROTECTED]  
www.napa.fi 


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

Reply via email to