jamesjuett / lobster

Interactive Program Visualization Tools
8 stars 3 forks source link

Visualize this pointer #323

Open jamesjuett opened 2 years ago

jamesjuett commented 2 years ago

A member function stack frame should visualize the this pointer to point to the receiver object in memory. Perhaps it should also show the pointed-to address?

There's a bit of nuance related to inheritance and polymorphism. In the context of a derived class member function, it should point to the actual object. In a base class constructor it should point to the base subobject. In a base class member function, it should point to the base subobject.