This made me think of metaprogramming in groovy. You could write a library in groovy, with the expectation that users of the library will then update the metaclasses to make method dispatching do whatever they want it to. I'm having trouble thinking of a reason you'd want to do things that way, but it could be done.
I imagine this is true for some other languages that allow for metaprogramming as well. I use groovy as the example because it's the only one where I've actually used metaprogramming personally.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This made me think of metaprogramming in groovy. You could write a library in groovy, with the expectation that users of the library will then update the metaclasses to make method dispatching do whatever they want it to. I'm having trouble thinking of a reason you'd want to do things that way, but it could be done.
I imagine this is true for some other languages that allow for metaprogramming as well. I use groovy as the example because it's the only one where I've actually used metaprogramming personally.