W
WaterWalk
Hello. Suppose there is an implementation of C++, in which when a
class object is allocated, its member functions are also allocated in
addition to its data members. So that every class object has a copy
of all of its member functions. When a member function is called, it's
the object's copy that When a class object is deallocated, the
corresponding member functions are also deallocated.
Don't consider optimization or performance,
1. Is such an implementation possible?
2. Does such an implementation conform to the ISO C++ standard?
class object is allocated, its member functions are also allocated in
addition to its data members. So that every class object has a copy
of all of its member functions. When a member function is called, it's
the object's copy that When a class object is deallocated, the
corresponding member functions are also deallocated.
Don't consider optimization or performance,
1. Is such an implementation possible?
2. Does such an implementation conform to the ISO C++ standard?