Show newer

sportsball 

oh wait the score is tied im gonna watch again

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_ if you want a real answer then I have my (extremely biased) notes here: github.com/calebmsword/cpp-not

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

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

re: sportsball 

Imagine being up 17-3 and not looking dominant

Show thread

@cam @aescling learned how to read at a very young age but I don't think she starting speaking early

Show older
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.