[Ironruby-core] Regexp anomalous behavior
Robert Brotherus
robert.brotherus at napa.fi
Tue Feb 26 02:46:02 EST 2008
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: Robert.Brotherus at napa.fi
www.napa.fi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20080226/a921a0a1/attachment.html
More information about the Ironruby-core
mailing list