Function

From Director Online Wiki
Jump to: navigation, search

Function is a particularly common name for a handler in languages other than Lingo and also tends to be common among Lingo programmers. In general a function is a sub-routine that returns a value, deriving it's name from the very similar mathematical entity. For example a common mathematical description of a graph would be:


y = f(x)


And in software it is perfectly feasable to have a function called "f" having one parameter "x" that returns a value "y" fitting this model. However a software function can be considerably more complex than a mathematical function as it can have external dependencies other than the input parameter x.

See also

handler