Hacker News new | ask | show | jobs
by surajrmal 94 days ago
Not exactly what you asked, but c++ does this for vtables if you pass the right option to the compiler: -fexperimental-relative-c++-abi-vtables

There is a similar proposal for trait objects in rust.