I would guess that this line in Client.xs has something to do with it. It is explicitly setting the class to the package name.
As much as I dislike reblessing, perhaps implementing a new() method that calls SUPER::new with the passed parameters and then reblesses it into your class would work.
You could also use delegation, and store the G::XS::C object on your object and call it when needed. One benefit that this could give is that you can change out the underlying implementation and leave your API the same.
--MidLifeXis
In reply to Re: Cannot subclass Gearman::XS::Client
by MidLifeXis
in thread Cannot subclass Gearman::XS::Client
by incubusaurus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |