@amy oh shit, it's amy!!
@amy do you orbit around holly because she is much more massive than you
@vaporeon_ extremely wet behavior
@vaporeon_ some people use it to sweeten tea
@vaporeon_ do you drink tea?
@cam how would feel if i told you i used microsoft paint for diagrams in my master's thesis
@onfy happy canada day!!!! 😊😊😊
@aschmitz hm, what a curious address this is. i wonder where it could lead:
https://theswissbay.ch/pdf/Gentoomen%20Library/Programming/Compiler/Aho%20-%20Compilers%20-%20Principles%2C%20Techniques%2C%20and%20Tools%202e.pdf
@aschmitz thank
@realty_trends damn i got got
@The_T sending
@onfy @sidd_harth0_5h4h that sounds like a pretty good life ngl
@vaporeon_ okay, for some reason std::cout << &add_rvalue_ref << "\n";
logs the number 1
to console and compilation gives me the warning "reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer may be assumed to always convert to true [-Wundefined-bool-conversion]" so um, what the fuck
#include <iostream>
int add(int a, int b) { return a + b; }
int main() {
// create type alias "AddType" for function of two ints that returns an int
// (this is just C syntax I believe)
typedef int (AddType) (int, int);
AddType&& add_rvalue_ref = (AddType&&)add;
std::cout << add_rvalue_ref(1, 2) << "\n";
}
@vaporeon_ I've actually never done it before so this'll take me a second haha
@aescling No. You would just bind the function to a reference or use a lambda, or as a last resort use a function pointer. I cannot imagine a use case for this
@aescling yeah
@aescling lvalue
yeehaw enthusiast
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. the walking embodiment of "not diagnosed, but somethings wrong". i like animals that wear cowboy hats.
I am not picky about names. Most people here call me catwin, clod boy, clodsire, or Caleb.
pfp is by @vaporeon_
"i regret ever allowing him here" ~aescling
he/him