Dmytro Serdiuk
11/02/2023, 12:24 AMephemient
11/02/2023, 12:45 AM3 is an rvalue, you cannot &3 or 3 = y
int x = 3; x is an lvalue, you can &x or x = yephemient
11/02/2023, 12:48 AMstruct Foo { int x; } in C
the type Foo behaves more like a struct Foo& in C++ (which is like a struct Foo* in C, but guaranteed non-null)Dmytro Serdiuk
11/02/2023, 12:48 AMephemient
11/02/2023, 12:50 AMDmytro Serdiuk
11/02/2023, 12:52 AMDmytro Serdiuk
11/02/2023, 12:52 AMDmytro Serdiuk
11/02/2023, 12:53 AMFoo behaves more like a struct Foo& in C++ (which is like a struct Foo* in C, but guaranteed non-null)”?Maybe I’m a little bit slow)Dmytro Serdiuk
11/02/2023, 12:53 AM