xsharp.eu • Anonymous methods
Page 1 of 1

Anonymous methods

Posted: Thu Jan 28, 2016 4:43 pm
by robert

Code: Select all

DELEGATE Multiply(x AS REAL8) AS REAL8
FUNCTION Start AS VOID
LOCAL del AS Multiply
del := {|e| e * e}
? del(1)
? del(2)
? del(3)
? del(4)
Console.ReadLine()
RETURN