Trans wrote:
On Jul 17, 12:15 pm, Charlie Savage <[EMAIL PROTECTED]> wrote:Something we didn't consider with the new LibXML namespace. We broke everyone's extensions. For instance, I was emailed this example: Comment out the following 4 lines and the test will pass (in 0.8.1). class XML::Document def a_methodname_very_unlikely_to_be_used_in_this_class arg end end Which of course doesn't work anymore, since it should be LibXML::XML::Document.No. That's not correct:module LibXML class XML end end=> nil ?> include LibXML => Objectclass XML def q; "q"; end end=> nilXML.new.q=> "q" What's the problem?
Without the include LibXML its broken... And we're not mixing LibXML into the global namespace at the moment. What we are doing is this:
module XML include LibXML::XML end Charlie
T. _______________________________________________ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel