Next: Errors
Prev: Objects
C--,
which resembles C at first glance. However, C-- is a
simpler language, and it stresses readability instead of conciseness.
The building blocks of methods are character sequences called tokens. From these tokens you can assemble a sequence of instructions to the interpreter called statements. You express values in statements using expressions.
Methods can return values using a return statement. If a method
does not explicitly return a value, its return value is the dbref of the
current object.
Methods have a limited amount of running time; if a method executes too
many instructions before returning, it will abort with a ~ticks
error, which it cannot catch. See Errors
Menu:
C-- method
C--