<HEAD> <TITLE> previous_object - returns the object(s) that called the current function </TITLE> </HEAD> <BODY BACKGROUND=http://www.imaginary.com/~beek/gifs/bg.jpg TEXT=#000000 ALINK=#FFFF00 VLINK=#550000 LINK=#000099> <center> <H1> previous_object - returns the object(s) that called the current function </H1> </center> <p> <b> object previous_object(); </b> <b> mixed previous_object(int x); </b> <p> Returns an object pointer to the object, if any, that called current function. Note that local function calls do not set previous_object() to the current object, but leave it unchanged. If passed a positive integer, it goes back the given number of previous objects in the calling chain. previous_object(0) is the same as previous_object(), previous_object(1) is the previous object's previous_object(), etc. previous_object(-1) returns an array containing all of the previous objects. <p> See also: <A HREF=call_other.html> call_other </A>, <A HREF=call_out.html> call_out </A>, <A HREF=origin.html> origin </A> <p> <HR> <ADDRESS> <A HREF=http://wagner.princeton.edu/~tim> Tim Hollebeek </A> <p> <A HREF="http://www.imaginary.com/~beek/"> Beek </A>@ZorkMUD, Lima Bean, IdeaExchange, TMI-2, and elsewhere </ADDRESS>