C++ Show more
A function call is an lvalue if it returns an lvalue reference meaning the following fucked up and evil code compiles:
int& get_seven() { int seven = 7; return seven;}int main() { get_seven() = 8;}
re: C++ Show more
@wallhackio okay but what does that actually do
@aescling i'm not completely sure
@wallhackio that has to be a memory integrity error
@aescling it does run.......
@wallhackio try running it under valgrind
@aescling I tried getting WSL to work on my machine and after running into a few issues I don't care enough so you'll have to do it
@wallhackio smh @ me fur not setting up the glitchcat tilde yet
A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.
re: C++
@wallhackio smh @ me fur not setting up the glitchcat tilde yet