Newsgroup: comp.lang.c++
Subject: vtables for dynamic dispatch - an "invention"?
From: ram@...
Date: 15 Nov 2013 19:30:42 GMT
I read someone "invented" vtables. But to me it seems that
they are obvious in the sense that a class is a list of
methods (simplified), which gives the vtable, and an object
has a class, which means that the object holds a pointer to
a vtable.
I cannot think of another means to implement virtual member
functions.
Is there something non-obvious about vtables that has to be
"invented"?
Are there other reasonable possibilities to implement
virtual calls?
Subject: vtables for dynamic dispatch - an "invention"?
From: ram@...
Date: 15 Nov 2013 19:30:42 GMT
I read someone "invented" vtables. But to me it seems that
they are obvious in the sense that a class is a list of
methods (simplified), which gives the vtable, and an object
has a class, which means that the object holds a pointer to
a vtable.
I cannot think of another means to implement virtual member
functions.
Is there something non-obvious about vtables that has to be
"invented"?
Are there other reasonable possibilities to implement
virtual calls?
via Usenet Forums - Usenet Search,Free Usenet - comp.lang.c++ http://www.pocketbinaries.com/usenet-forums/showthread.php?129166-vtables-for-dynamic-dispatch-an-invention&goto=newpost
View all the progranning help forums at:
http://www.pocketbinaries.com/usenet-forums/forumdisplay.php?128-Coding-forums
No comments:
Post a Comment