E
Edward Diener
I understand that specifying an __event, let's call it X, actually generates
add_X, remove_X, and raise_X methods in the class of the __event. If one
wants to allow the adding, subtracting, and calling of an event from outside
the class, and one is implementing these methods for oneself with custom
code rather than letting the compiler do it using the "__event ADelegate *
X;" methodology, do the methods with the __event keyword specified above
have to be accessible by the user of the __event ? In other words, does the
compiler translate event addition via X += ADelegate, event deletion via
X -= ADelegate, and event raising via X(someparm) as actual calls to the
member functions mentioned above in the code, or is there an indirect call
into something public within the class which actually calls the appropriate
__event member function.
add_X, remove_X, and raise_X methods in the class of the __event. If one
wants to allow the adding, subtracting, and calling of an event from outside
the class, and one is implementing these methods for oneself with custom
code rather than letting the compiler do it using the "__event ADelegate *
X;" methodology, do the methods with the __event keyword specified above
have to be accessible by the user of the __event ? In other words, does the
compiler translate event addition via X += ADelegate, event deletion via
X -= ADelegate, and event raising via X(someparm) as actual calls to the
member functions mentioned above in the code, or is there an indirect call
into something public within the class which actually calls the appropriate
__event member function.