Index | PAL Intro | Commands | Registers | Indices | Stack | Macros | Classes | Attributes | Errors


Manual Reference Pages  - obj_pa (5)

NAME

obj/pa - Reference a parent object

CONTENTS

Synopsis
Description
Error Handling
Examples
See Also
Author

SYNOPSIS

obj/pa write, ![object]
obj/pa write

DESCRIPTION

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).

ERROR HANDLING

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.

EXAMPLES

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.

SEE ALSO

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.

AUTHOR

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
Generated by manServer 1.07 from man5/obj_pa.5 using man macros.