Topic: Re :IDEA: virtual member variables


Author: stephen.clamage@eng.sun.com (Steve Clamage)
Date: 1997/01/26
Raw View
In article 2b4697c2@fvl.iaehv.nl, "Frank van Leeuwen" <fvl@iaehv.nl> writes:
>Excuse me if there is already something like this; I have only a few months
>experience in C++, but I think there is a need for something like what I
>call 'virtual member variables'.

That has been discussed many times in the past, althought I don't
remember whether it is discussed in D&E.

There is no technical reason why C++ could not have "virtual
member data", but there also never seemed to be a compelling reason
to add it. You can get the effect with virtual accessor functions,
after all.
---
Steve Clamage, stephen.clamage@eng.sun.com
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]