Hacker News new | past | comments | ask | show | jobs | submit login

But doesn't the 'stackalloc' keyword in C# allow you to express to intentionally allocate value types on the stack?



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).




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: