How do you get the parent object from C? I have tried LOW_PARENT_INFO(Pike_fp->current_object, p) with p being both the enclosed and enclosing programs, but I don't seem to get the right value. (And yes, I have set PROGRAM_USES_PARENT on the enclosed program.)
I obviously need a teddy bear. Just as I had written that, I realized that LOW_PARENT_INFO() doesn't return a pointer to the object, but to to a struct, which _contains_ a pointer to the object.
LOW_PARENT_INFO(Pike_fp->current_object, p)->parent
did exactly what I wanted...
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2002-11-22 00:53: Subject: parent object
How do you get the parent object from C? I have tried LOW_PARENT_INFO(Pike_fp->current_object, p) with p being both the enclosed and enclosing programs, but I don't seem to get the right value. (And yes, I have set PROGRAM_USES_PARENT on the enclosed program.)
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
You explain the problem to the teddy bear before you're entitled to any help with your problem from an actual person.
/ Johan Sundström (ärkehertig av Lysators rootgrupp)
Previous text:
2002-11-22 13:10: Subject: Re: parent object
On Fri, Nov 22, 2002 at 01:00:01AM +0100, Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum wrote:
I obviously need a teddy bear.
now i am curious, how does the teddy bear help in such situations? :-)
greetings, martin.
/ Brevbäraren
pike-devel@lists.lysator.liu.se