Some Ideas for Dynamic Vtables in D
Michel Fortin
michel.fortin at michelf.com
Sat Feb 14 12:46:29 PST 2009
On 2009-02-14 14:27:51 -0500, grauzone <none at example.net> said:
> Even if the heap contained all type information, what about scope
> classes on the stack?
Indeed. I'm aware of this reliability problem. That's in part why I
also proposed to add one new level of indirection to the vtable
instead, although I haven't mentioned it.
> For extension methods, if would probably be better to use some kind of
> separate vtable for this.
But how do you find the vtable for a given object? Surely you're not
proposing dynamically adding new vtable fields to objects?
--
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/
More information about the Digitalmars-d
mailing list