Here's a patch for Bit::Vector that seems to add the proper support for inheritable class names. It breaks 4 tests in the test suite, but they seem to be testing for the ability of the module to not support this, so I'm going to ignore these. All functional tests pass.
--- Vector.old.xs Sun Nov 4 15:14:40 2001
+++ Vector.xs Sun Nov 4 15:29:51 2001
@@ -257,7 +257,7 @@
{
handle = newSViv((IV)address);
reference = sv_bless(sv_2mortal(newRV(handle)),
- BitVector_Stash);
+ sv_isobject(class) ? SvSTASH(SvRV(class)) : gv_stashsv(
+class, 1));
SvREFCNT_dec(handle);
SvREADONLY_on(handle);
PUSHs(reference);
Again, I'd prefer a real solution from the author, but this may work for you in the mean time.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|