
Delegate FunctionInvoker
(displayStr STRING)
end
Program greetings
// declare delegate variable
invoker FunctionInvoker;
Function main()
// writeToScreen() must match Delegate parameters
invoker = writeToScreen;
invoker("Hello world");
end
Function writeToScreen(myMsg STRING)
sysLib.WriteStdOut (myMsg);
end
end
| Platform | Issue |
|---|---|
| iSeries® | The Delegate part is not available. |