@swiff this would fix me
re: c++
@Lady in C++ all literals are rvalues except for string literals. for Some Reason.
c++
It's annoying how arbitrary the rules for value categories are.
then casting something as an lvalue reference should be the same, right? Wrong. It is an lvalue because the standard says it is. Ok.
temporary values, even if they have an address, are still rvalues even if the address is not made available to the programmer (this most often occurs when you return an object from a function call). okay, fine.
but string literals are lvalues??? & is defined on a string literal? why? why only for string literals and not all objects??????
accessing an element of an array from an expression for an array that is, itself an rvalue (ie, get_array()[0]
) is an xvalue, not a prvalue. I guess, by definition, arrays elements are inherently addressable data available to me so sure, why not.
but get_object().property
is also an xvalue. why. why is it an xvalue. even though objects have addresses they are not exposed to the user if they are temporary so why is the property access now considered addressable??????
I truly don't think it's possible to derive in the general case whether something is a prvalue, xvalue, or lvalue from first principles. For a lot of cases you just have to see what the standard says they are and try to make sense of it.
Maybe if I understood more about compilers there could be good reasons for these value categories but then again, if the language can only be properly understood by understanding implementation details of its compiler then it is not an effective programming language imo.
@aescling @Lady see if I can't turn back and I lose my consciousness that is no meaningfully different from dying. But if I keep my consciousness and permanently tf and I probably would rather die
So what I would do on whether there are ground type pokemon that are like Mewtwo in the sense that they can think and hold conversations and whether or not this is permanent
@aescling can I turn back at will?
@aescling am I stuck this way forever or am I doing it for fun?
@aescling do I keep my consciousness completely intact or do I acquire the mental capacity of whatever pokemon I am turned into?
@aescling I don't know what the ground types even are
the forbidden fire-type pokemon.
movie/animation/anime fan. videogame enjoyer. food liker. mathematics hobbyist and recovering physicist. software engineer. professional wonk. top-ranked c++ hater. prophet of The Truth. i would not be surprised if I had autism + adhd. i like animals that wear cowboy hats.
I answer to many names, including but not limited to wallhackio, BigmouthCreator, BingusDingus, catwin, and clodboy.
header is by @vaporeon_
"i regret ever allowing him here" ~aescling
he/him