Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
littlecranky67
on July 2, 2020
|
parent
|
context
|
favorite
| on:
HotSpot compiler: Stack allocation prototype for C...
But doesn't the 'stackalloc' keyword in C# allow you to express to intentionally allocate value types on the stack?
giulianob
on July 2, 2020
[–]
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: