Priority of Functors On Class Resolving

Asked by burak er

Dear Yade Users,

I want to know the priority of functors on dispatching mechanism. Say for example I have a class B that is derived from Class A,
if I only have a functor that operates only on A class, will dispatching mechanism use this functor to operate on an instance of B?

I see this behavior on the Gl_* functors, is it same for all kind of other functors?

Thank you in advance.

Burak Er

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Bruno Chareyre
Solved:
Last query:
Last reply:
Revision history for this message
Best Bruno Chareyre (bruno-chareyre) said :
#1

Yes, it is the same everywhere. The last level of inheritance has the priority, but if there is nothing for this level it will go backward to try and find something.

Revision history for this message
burak er (burak-er) said :
#2

Thanks Bruno Chareyre, that solved my question.