How to “return an object” in C++?
I know the title sounds familiar as there are many similar questions, but I’m asking for a different aspect of the problem (I … Read more
I know the title sounds familiar as there are many similar questions, but I’m asking for a different aspect of the problem (I … Read more
I know that “string” in C# is a reference type. This is on MSDN. However, this code doesn’t work as it should then: … Read more
This question already has answers here: How do I clone a list so that it doesn’t change unexpectedly after assignment? (21 answers) Closed … Read more
I wrote some Rust code that takes a &String as an argument: fn awesome_greeting(name: &String) { println!(“Wow, you are awesome, {}!”, name); } … Read more
I was reading the answers to this question C++ pros and cons and got this doubt while reading the comments. programmers frequently find … Read more
I have read this article about different types of references in Java (strong, soft, weak, phantom), but I don’t really understand it. What … Read more
This question already has answers here: How do you do a deep copy of an object in .NET? [duplicate] (10 answers) Closed 2 … Read more
Why does the first return a reference? int x = 1; int y = 2; (x > y ? x : y) = … Read more
I’m having a little trouble understanding the pass-by-reference properties of data.table. Some operations seem to ‘break’ the reference, and I’d like to understand … Read more
When writing xml documentation you can use <see cref=”something”>something</see>, which works of course. But how do you reference a class or a method … Read more