jamesjuett / lobster

Interactive Program Visualization Tools
8 stars 3 forks source link

Add warning for cstring + char #164

Open jamesjuett opened 4 years ago

jamesjuett commented 4 years ago

Example:

string s = "frog" + 's';

This actually offsets the char * pointing to the string literal "frog" by the ascii value of 's'.

It should be relatively straightforward for Lobster to produce a warning for this.