@coriander oh that's good
@The_T ⬆️ my genuine reaction to that toot
@vaporeon_ 🫵 vaproeon
re: I'm bad at C++
@vaporeon_ but its "bad practice" vaproeon i must do it properly by creating a github issue and then assigning myself to it and then making a new branch for work for that issue and then making changes there, and then making a merge request from that new branch :)
re: I'm bad at C++
@vaporeon_ I actually use git on the command line, even on windows, so whitespace for a filename is annoying for me
not the first time i made things unnecessarily difficult for myself, won't be the last :)
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
kept afloat by big ideas.
you can call me Caleb or Clodsire. i also go by clodboy and catwin. i am not picky about names (unless its one amy made up)
videogame enjoyer. mathematics hobbyist and recovering physicist. software engineer. professional wonk. prophet of The Truth. the walking embodiment of "not diagnosed, but somethings wrong". i like animals that wear cowboy hats.
pfp is by @The_T
header is by @vaporeon_
"i regret ever allowing him here" ~aescling
"oh you're one of those weird movie likers" ~Ti
"i know your taste in movies well enough to discount your opinion" ~globin
"caleb is the only person on this websites who truly understands what the report button is for: 'i don't like this post'" ~holly
30+
straight
he/him