[Erik de Castro Lopo]
Tim Goetze wrote:
Enter gcc version 3, moving the vtable member to
memory offset 0 of a
derived type even if the base type is in C which doesn't know about
vtables.
Relying on undefined behaviour will, sooner or later, result in tears.
To be honest, I don't know if it's undefined behaviour; I don't read
ISO compiler ABI standards (if they exist in the first place). I was
simply trusting that common sense would always allow this
cross-language subclassing, apparently I was wrong.
Can I sell you an Ocaml:
http://www.ocaml.org/
Does it give me inline assembly, realtime-safeness and the performance
of C/C++? I'm quite fond of C in both incarnations, and paired with
Python it's quite a dream team that is hard to surpass, or
alternatively fit into.
Browsing the site, the tutorial shows code lines ending with two
semicola and assignments using a 'let' operator; first bitter pills
to swallow for a friend of code brevity to be sure.
It does look like it has its sweet spots after some more tutorial
browsing, however I'm afraid my ideal it is not.
Cheers, Tim