Menu

keywords-event

Will Pittenger

Used to declare an event. For more on events, see the section [Events].

Declaration

\event\ /DelegateTypeIdentifier/ /identifier/

/DelegateTypeIdentifier/ must be a Delegate type declared with the delegate keyword.

Subscribing

/EventIdentifier/ ++ /DelegateInstance/

/DelegateInstance/ must be a procedure that matches the delegate the type is based on. For more on delegates, see the section [Delegates].

Unsubscribing

/EventIdentifier/ -- /DelegateInstance/

Firing the event

Simply treat the event as though it were the same type of procedure that the delegate is based on. So if the delegate is a command, treat the event as a command.


Related

Wiki: Attributes
Wiki: Delegates
Wiki: Events
Wiki: Keywords
Wiki: keywords-delegate