<-Back

Macro: The-Object

THE-OBJECT lisp object

Sends the reference-chain to object, which must be specified as a Lisp expression (e.g. a variable) which evaluates to a GDL object.

arguments:
reference-chain (&rest)
A spliced-in list of symbols naming messages, which can be slots or objects starting from object. For referring to elements of a quantified set, or for passing arguments to GDL functions which take arguments, use parentheses around the message name and enclose the quantified element index or function arguments after the message name
example:
This example sends the length message to the ``zeroth'' element of the quantified set of arms contained in the body which is contained in the robot which is contained in object:
 (the-object object robot body (arms 0) length)

<-Back