Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jessinra98
· 5mo ago · 0 comments
The article has a section about that. For me, a struct in C/C# can be modified and is passed by copy while a value class can not be modified and is passed by value.
I do not think you can do stack allocation in Java.
Comments
[–]
joe_mwangi
5mo ago
Yup. By design, value classes will use cpu registers as a 1st priority instead.