Class IsFunctionDelegateSymbol
java.lang.Object
org.ek9lang.compiler.support.IsFunctionDelegateSymbol
Predicate to determine if a symbol is a function delegate.
A function delegate is a variable whose type is a FunctionSymbol. This occurs when a function is stored in a variable, enabling:
- Dynamic function assignment:
myFunc <- (x) is SomeFunction as function - Function parameters:
process(handler as SomeFunction) - Function returns:
getHandler() returns SomeFunction
When calling a function delegate, we must LOAD the variable rather than using FUNCTION_INSTANCE (which gets the singleton for named functions).
-
Constructor Details
-
IsFunctionDelegateSymbol
public IsFunctionDelegateSymbol()
-
-
Method Details
-
test
-