The Hyper Programming Language |
home | language reference | compiler | hyper on launchpad |
In Hyper, not every expression can be used as a statement. The only expression that can be used for this is a procedure call.
The syntax for a procedure call statement is identical to an L-value of an assignment.
With a procedure call statement you can call any procedure, also the ones that return a result. Such a result will be discarded.
The only restriction is dat a procedure is effectively called. If only the name of the procedure is specified, then an implicit procedure call is done.
procedure p() foo() # call procedure `foo' (assuming it exists) without arguments a.b.c("xyz") # call procedure `a.b.c' with one argument displayGUI # call procedure `displayGUI' without arguments end