[libxml-devel] Breaking old classes
Sean Chittenden
sean at chittenden.org
Thu Jul 17 16:50:29 EDT 2008
> Right? With of course an obvious problem that require 'xml' is
> surely going to conflict with someone else - putting us back with
> the same problem.
You may be presuming too much. Do a quick check, if nothing comes
back, let's use it (why not?).
*puts evil hat on* Here's another trick that we could use:
>> module LibXML; end
=> nil
>> b = false
=> false
>> ObjectSpace.each_object(Module) {|m| if m.name == 'LibXML'; b =
true; break; end }
=> nil
>> b
=> true
Since it's done behind a require, it should only get evaluated once. -
sc
--
Sean Chittenden
sean at chittenden.org
More information about the libxml-devel
mailing list