The capabilities of the Delegate classifier are made available when you code a Delegate part, which is the basis of a variable that references an EGL function. A primary use of Delegate parts and the related variable is in the EGL system libraries.
call myService.myFunction()
returning to myCallbackFunction
onException ServiceLib.serviceExceptionHandler;
Delegate SystemDelegatePart
(exp AnyException in)
end
serviceExceptionHandler SystemDelegatePart;
ServiceLib.serviceExceptionHandler = myExceptionHandler;
Function myExceptionHandler(exp AnyException in) ; end
Please note that the characteristics of the myExceptionHandler function are the same as the characteristics of the SystemDelegatePart part. That is, the SystemDelegatePart part describes a function that accepts a single parameter of type AnyException and does not return a value. That sameness is what enables you to substitute your function for the one that is used by default.
A Delegate part does not include a stereotype.