Select Git revision
-
Fredrik Hübinette (Hubbe) authored
Rev: bin/create_testsuite:1.2 Rev: doc/types/mapping:1.2 Rev: lib/simulate.lpc:1.3 Rev: lib/testsuite.lpc:1.2 Rev: src/array.c:1.3 Rev: src/call_out.c:1.3 Rev: src/configure.in:1.6 Rev: src/debug.c:1.2 Rev: src/debug.h:1.2 Rev: src/docode.c:1.3 Rev: src/dynamic_buffer.c:1.2 Rev: src/interpret.c:1.3 Rev: src/las.c:1.2 Rev: src/lpc_types.c:1.2 Rev: src/macros.h:1.3 Rev: src/main.c:1.5 Rev: src/mapping.c:1.3 Rev: src/modules/regexp/regexp.c:1.3 Rev: src/object.c:1.2 Rev: src/opcodes.c:1.5 Rev: src/port.c:1.7 Rev: src/types.h:1.5
Fredrik Hübinette (Hubbe) authoredRev: bin/create_testsuite:1.2 Rev: doc/types/mapping:1.2 Rev: lib/simulate.lpc:1.3 Rev: lib/testsuite.lpc:1.2 Rev: src/array.c:1.3 Rev: src/call_out.c:1.3 Rev: src/configure.in:1.6 Rev: src/debug.c:1.2 Rev: src/debug.h:1.2 Rev: src/docode.c:1.3 Rev: src/dynamic_buffer.c:1.2 Rev: src/interpret.c:1.3 Rev: src/las.c:1.2 Rev: src/lpc_types.c:1.2 Rev: src/macros.h:1.3 Rev: src/main.c:1.5 Rev: src/mapping.c:1.3 Rev: src/modules/regexp/regexp.c:1.3 Rev: src/object.c:1.2 Rev: src/opcodes.c:1.5 Rev: src/port.c:1.7 Rev: src/types.h:1.5
object 812 B
NAME
object - an instance of a class (program)
DESCRIPTION
There is no syntax example in this file because there is no way to
write constant object. The only way to make new objects is to use
clone() on a program.
Here follows a list of operators that applies to objects:
In this list, o and o2 are used to represent object expressions,
and s is a string expression:
o[s] indexing, returns the identifier named s in the object o,
an identifier is a global variable or a function.
o[s]=c This sets the global variable s int the object o to c,
if s is a function however, an error is produced.
o->foo same as o["foo"]
o == o2 return 1 if o and o2 are the same object
o != o2 return 0 if o and o2 are the same object
KEYWORDS
types
SEE ALSO
program, function, builtin/clone, builtin/destruct