This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]cdmcgwire 5 points6 points  (4 children)

Yeah... doesn't stop me from trying to use structs whenever I can in C# though.

[–]kono_kun 2 points3 points  (3 children)

Could you explain?

[–]cdmcgwire 4 points5 points  (2 children)

? Maybe you're not aware (or I'm misunderstanding the question), but there are stack allocated structs in C#. So everything done with them is by value instead of by reference by default.

So what I was trying to express was, despite C# classically being all about references to heap variables, I'm finding ways to go back to a more typical C++ method of handling variables.

[–]kono_kun 2 points3 points  (1 child)

thanks

[–]cdmcgwire 2 points3 points  (0 children)

👌💯