kenz-gelsoft / wxRust2

re-exploration Rust binding to wx
MIT License
78 stars 10 forks source link

Support multiple inheritance in codegen #77

Closed kenz-gelsoft closed 2 years ago

kenz-gelsoft commented 2 years ago

This is not a rare case:

And needs to be regenerated like this (ffbfc321f67d68e6ff0ac14d4b0f51f8a77edcf3...d4a7a395f9fb3132657baa75243276d8a641061d) after codegen change.

So codegen should support this scenario.

kenz-gelsoft commented 2 years ago

We've semi-automated this in https://github.com/kenz-gelsoft/wxRust2/pull/78, but as it doesn't incorporate overloads renaming( https://github.com/kenz-gelsoft/wxRust2/pull/39 ), it requires type-prefixed call and can't be used with method-style call. Like these:

Reopen and will fully automate multiple inheritance in codegen.