Virtual Data?

From: Daniel Graifer (graifer_at_earthlink.net)
Date: 07/30/04


Date: Fri, 30 Jul 2004 16:29:57 GMT

Why doesn't c++ support virtual data? It supports class data of type
pointer to function (that's what virtual functions really are). In
terms of implementation, why can't I have other types of data in my vtable?

RTTI could be implemented this way instead of as a special case for the
compiler. It would also be useful for class specific memory management
implementations.

-- 
Daniel A. Graifer