Inherit in CMOD
Pontus Östlund <[email protected]> Fri, 28 Jul 2017 18:29:49 +0200
| Newsgroups | gmane.comp.lang.pike.user |
|---|---|
| Message-ID | <[email protected]> |
Hi guys!
Say I have a CMOD with
PIKECLASS A {
}
PIKECLASS B {
}
How do get B to inherit A? I've poked around a bit in the source code and found
PIKECLASS Result
program_flags PROGRAM_USES_PARENT|PROGRAM_NEEDS_PARENT;
{
INHERIT "__builtin.Sql.Result";
}
and stuff like that in the Sql modules. I tried to emulate that and got it to compile, but when I try to use the code it crashes.
So what is the proper way to solve inheritance in a CMOD?
Cheers
# Pontus