← Back to team overview

yade-dev team mailing list archive

Re: Inheritance and dispatching?

 


But what if I want to force a different functor for B? I just tried
deriving Gl1_B : Gl1_A, but it seems Gl1_A will always be used to
display B, witout looking down the inheritance tree. Is there a simple
workaround?
It should use the closest dispatch as you describe.

It doesn't use the closest apparently. If you want to make some tests, you can checkout last commit (where bad dispatch is workarounded) and uncomment the code for Gl1_ChainedCylinder, which is never called in chained-cylinder-spring.py.

Bruno




Follow ups

References