Chris boris Ross wrote:

>On Sun, Mar 10, 2002 at 11:59:07AM +0900, David Corbin muttered...
>: The following is from my debugging through xmlc.rb
>: 
>: Breakpoint 1, dump_element at xmlc.rb:94
>: xmlc.rb:94:                                     children.push ch unless 
>: (ch == "" || ch == nil)
>: (rdb:1) p ch
>: "\"\n\""
>: (rdb:1) p children
>: []
>: (rdb:1) s
>: xmlc.rb:94: `undefined method `to_str' for nil' (NameError)
>: 
>: How is 'nil' trying to do a to_str?
>: 
>: Thanks
>: David
>: 
>: 
>
>I believe it's a case of ch is a string and therefore to do an equlity check
>ruby is doing:
>
>  ( ch.to_str == "" || ch.to_str == nil.to_str )
>  
>*but* I could be being stupid and wrong,
>
That seems like a problem *lots* of people would encounter....

>
>Regards,
>
>Chris
>