re: I'm bad at C++
@vaporeon_ there I fixed it :) (by committing directly to the main branch :)))))
re: I'm bad at C++
@vaporeon_ my bad lmao
re: I'm bad at C++
@vaporeon_ if you want a real answer then I have my (extremely biased) notes here: https://github.com/calebmsword/cpp-notes/blob/main/value%20category.md
You don't need to read the whole thing to understand lvalues. Just read up to the section titled C++11.
re: I'm bad at C++
@vaporeon_ in C that was the case because C makes sense. In C++, there are expressions called "lvalue" because C had expressions called "lvalues" and most of them are considered "lvalues" in C++
re: I'm bad at C++
@vaporeon_ im pretty sure functions cannot be reassigned
in C++ land, where things no longer make sense, there are many lvalues which cannot appear on the left hand side of an assignment
re: sportsball
@vaporeon_ in C++, functions names are considered lvalues! I cannot say for certain why this decision was make, I would guess this was probably so that "names of things" could correctly describe lvalues
However, a function name is ambiguous if that function is overloaded, so the & operator throws on the name in that case
re: sportsball
@vaporeon_ would you like me to tell you the answer
@soft the lie i tell myself daily
re: sportsball
@vaporeon_ there is exactly one lvalue in C++ that sometimes throws when given to the & operator. can you think of what it is?
Hint: while this kind of expression exists in C, it is not considered an lvalue in C!
re: sportsball
@coriander my PC and consoles are packed so I can't play video game o________o
@cam that's a great word I am adding to my collection thank you
@SportsGoblin I am watching because I wanted to move today but the people I scheduled a junk removal today were 2.5 hours late and this was after they pushed my appointment back an entire day so now I don't trust them so I just cancelled the appointment and now scheduled one with a different company and the earliest I could schedule was tomorrow morning so now I'm just sitting on my ass waiting for tomorrow
@SportsGoblin this game got wacky fast
@lapis holy shit
the clodvestigator
i answer to Caleb, Clodsire, Clodboy, Clod, and Bumby. very leftist.
videogame enjoyer. mathematics hobbyist and recovering physicist. recovering software engineer. professional wonk. prophet of The Truth. the walking embodiment of "not diagnosed, but somethings wrong". i like animals that wear cowboy hats.
number of fat cock awards received: 56
header is by @vaporeon_
"i regret ever allowing him here" ~aescling
"oh you're one of those weird movie likers" ~Ti
30+
he/him
sgraMrt