> At any rate, upcasting is trivial (return &p->foo_struct) > given the current single inheritance, and can't fail.
Actually it can. If I pass an interface pointer to a polymorphic routine that operates on that interface, that that implementation can not upcast. But that's a more general OO problem. I'm all in favor of doing this a step at the time and getting rid of the current interface cruft and supporting simple interface inheritance would be a huge step in the right direction. -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development