jamesjuett / lobster

Interactive Program Visualization Tools
8 stars 3 forks source link

Animations for parameters passed to library functions fly off screen #319

Open jamesjuett opened 2 years ago

jamesjuett commented 2 years ago

Because there is no outlet to receive the parameter (stack frames for library functions aren't shown), the animation code just plows forward and probably ends up with destination coordinates of (0,0) or something. It shouldn't be terrible to special case this animation to something appropriate.

jamesjuett commented 2 years ago

It might also be reasonable to not have any animations, or to somehow customize whether or not it is shown. The current behavior manifests all over the place, because a lot of things are actually function calls behind the scenes. For example:

string s = "test";
cout << s;

Both the constructor for the string and the call to operator<<(ostream &, string) are examples and currently have the "animate the argument flying off the screen behavior".