Re: Look at the threading module in the library
I haven't used 'raise event'--is that just a glorified callback?
Something like that. Quoting from the C# language specification, 1.7.5 Events:
An event is a member that enables an object or class to provide notifications. A class defines an event by providing an event declaration, which resembles a field declaration, though with an added event keyword, and an optional set of event accessors. The type of this declaration must be a delegate type.
An instance of a delegate type encapsulates one or more callable entities. For instance methods, a callable entity consists of an instance and a method on that instance. For static methods, a callable entity consists of just a method. Given a delegate instance and an appropriate set of arguments, one can invoke all of that delegate instance\ufffds methods with that set of arguments.
Just was wondering if I saw the way it's supposed to be done, or if I was missing it. In Python, it looks like you add a function to the list of functions for that event. When the "event" triggers, you walk through the list of functions, and call them.