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.
Again, I'd prefer a real solution from the author, but this may work for you in the mean time.--- 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);
In reply to Re: Re: How can I inherit from Bit::Vector?
by Fastolfe
in thread How can I inherit from Bit::Vector?
by toma
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |