frankpfenning / C0

C0 Language
4 stars 0 forks source link

Pointer casts should be accepted as lvalues #64

Open robsimmons opened 9 years ago

robsimmons commented 9 years ago

The compiler currently rejects

*((int*)x) += 1;

and in both lecture and homeworks that's been a thing that people have naturally wanted to write, it corresponds to being able to write (int)x as an rvalue.

ishantheperson commented 3 years ago

5 years later, we have implemented this 😂