Ah okay. Yeah it's not 'safe' at all... but I think the '6' comes
from the number of members that Foo has. If you figure out how
many methods there are in the v-table, then that should get you
the index (though don't quote me on this... you should look at
the compiler source code if you want to be really sure).
On Friday, 4 May 2012 at 14:16:49 UTC, Gor Gyolchanyan wrote:
Yes! Your solution looks exactly like what I wanted. The reason
why I
considered additional alternatives is because your solutions
looks
very fast (YES!!!), but not very portable and safe, so after
testing,
if it turns out to be inconsistent, I'll have to use something
else.