Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
littlecranky67
· 6y ago · 0 comments
But doesn't the 'stackalloc' keyword in C# allow you to express to intentionally allocate value types on the stack?
Comments
[–]
giulianob
6y ago
I'd say ref structs are more explicitly stack allocated since they're not allowed to be boxed. Stackalloc is used to allocate arrays on the stack (or rather a block of memory).