blue_cowdawg has asked for the wisdom of the Perl Monks concerning the following question:
Fellow Monks,
I have been toying around for the first time with h2xs to
create some Perl modules that use C code in their inner
workings. In particular I am experimenting with using
the MySQL C API to possibly speed up queries to a MySQL database.
In my currently purely Perl CGI environment I have the notion of a dataObj that serves as a base to other modules that represent data types that are stored as table records in my database. As a result dataObj::contactInfo @ISA(dataObj) and inherits such methods as connect2db, insert, delete, query2struct and others.
I would like to set up the same sort of inheritance in XS but it doesn't seem to work. The subordinate objects do not seem to see the parent objectrs. Am I all wet here? Am I missing something? Is there a way to make this work?
| Peter L. Berghold -- Unix Professional Peter at Berghold dot Net | |
| Dog trainer, dog agility exhibitor, brewer of fine Belgian style ales. Happiness is a warm, tired, contented dog curled up at your side and a good Belgian ale in your chalice. | |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Inheritance in XS modules?
by Elian (Parson) on Sep 09, 2003 at 20:48 UTC | |
|
Re: Inheritance in XS modules?
by mpeppler (Vicar) on Sep 09, 2003 at 20:59 UTC | |
by blue_cowdawg (Monsignor) on Sep 09, 2003 at 21:07 UTC | |
by adrianh (Chancellor) on Sep 09, 2003 at 21:47 UTC | |
by blue_cowdawg (Monsignor) on Sep 10, 2003 at 01:53 UTC | |
by mpeppler (Vicar) on Sep 09, 2003 at 21:14 UTC |