Yes yes, I think I have found my 2nd compiler bug (not counting
realbasic).  I think I found an actual bug in Ruby, on all platforms
none the less (well linux and mac).

if yu just run console or irb and do this

ph = "no.305.week"

b = ph+"5"
returns "no.305.week5"

then do
b.delete ph

and it returns empty string

If you put anything BUT 5 in the string, everything works.  Also if
you substitute 305 with something that is not a number only everything
works.

I have put in more thoughts on this in my blog :
http://traustithor.blogspot.com/2010/04/most-funny-but-annoying-ruby-bug.html

If anyone can cast any idea on this as to why this is happening, I
would love to hear it.  I know the bug is in the delete function, I
want some more and deeper idea as to why.
This is such an edge case.


Trausti

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to