Ok. Then, given an object x, check that x->prog == wanted_program.
You still need the program pointer, though.
/ Per Hedbor ()
Previous text:
2004-02-03 14:28: Subject: Re: Object comparision in C module
On Tue, Feb 03, 2004 at 02:15:02PM +0100, Per Hedbor () @ Pike (-) developers forum wrote:
What if I don't want this "something" to inherit my program?
And why should you disallow that?
Security reasons. External modules must have access only to explicitly allowed operations, and must not (be able) inherit anything which is not exlicitly allowed (so no class behavior may be modified "in transit").
Regards, /Al
/ Brevbäraren