Yes, that is right: Functions are part of our data types chapter too. In Hollywood every function is just a variable. That means that you can initialize them just like variables, you can pass functions as parameters to other functions and functions can also be the return values of other functions. For example, the following code
p_Print = Function(s) DebugPrint(s) EndFunction |
is just another way for writing:
Function p_Print(s) DebugPrint(s) EndFunction |
Because functions are variables you can also assign new values to them, for instance:
DebugPrint = Print |
Now all calls to DebugPrint() will call the Print() command instead.
There is a lot more to know about the function data type. Therefore it has its own chapter in this manual. See Functions for details..