Index | PAL Intro | Commands | Registers | Indices | Stack | Macros | Classes | Attributes | Errors
obj/pa - Reference a parent object
Synopsis
Description
Error Handling
Examples
See Also
Author
obj/pa write, ![object]
obj/pa write
Returns a pointer to the parent of the given object in the write register. If no object argument is provided, returns a pointer to the parent of the context root (PCTX).
A runtime error is generated if an argument is the wrong type, or if the referenced object does not exist, or if the object does not have a parent.
obj/pa P0, ![.prose.code.default] Returns a pointer to the .prose.code node, which is the parent of .prose.code.default and stores the result in register P0. obj/pa PUSH Looks up the parent of PCTX and pushes the result onto the stack.
pal_commands(5), pal_registers(5), pal_indices(5), obj_addr(5), obj_child(5), reg_load(5),
PROSE Assembly Language at prose.sourceforge.net.
Copyright (c) 2002-2017 Mark R. Bannister <cambridge@users.sourceforge.net>.
This is free software and can be downloaded from prose.sourceforge.net; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
PAL 1.0 | obj_pa (5) | 8 February 2017 |