250 | | '''Call expressions.''' Using call expressions, you can call functions, classes (to make new class instances), delegates, and other types which have an opCall metamethod. If the expression before the parentheses is a dot expression, the right side of the dot expression is the name of the method to call, and the left side of the dot expression is passed as the 'this' parameter of the called function. This is a method call. When a non-method call occurs, the value passed as the 'this' parameter is determined in other ways. See [wiki:LanguageSpec/Functions Functions] for more details. |
---|
| 250 | '''Call expressions.''' Using call expressions, you can call functions, classes (to make new class instances), threads (to resume them), and other types which have an opCall metamethod. If the expression before the parentheses is a dot expression, the right side of the dot expression is the name of the method to call, and the left side of the dot expression is passed as the 'this' parameter of the called function. This is a method call. When a non-method call occurs, the value passed as the 'this' parameter is determined in other ways. See [wiki:LanguageSpec/Functions Functions] for more details. |
---|