Hello!
I have new question.
Is there an ability to intercept an object's arbitrary method call or access to object's properties?
In details:
I have a class 'selector' incapsulating mechanics of enumeration and selection of objects of different classes. I'm interesting in ability to
call same-named methods of group of objects by calling an fictitious method of selector. Selector must translate it to calls of methods of enumerated objects with actual arguments list.
Set of methods unknown at compile time and it's impossible to make needed selector's methods.
For example:
// selector
selector s=s();
// initialize 's' selector, bind it to some objects
...
// call all objects methods
s.foo("test",12); // foo methods of all enumerated object same signatures will be called
If there is a combination of Angel Script mechanics, overloaded operators etc, it would be very usefull for me. Best way is to intercept method's call with information of method's name, types and values of arguments and returning value.