3 ms·
C# has `stackalloc`
by lionkor 8mo ago
C# has `stackalloc`
- bertylicious 8mo agoBut that requires an explicit declaration and isn't done automatically under the hood, or am I missing something?
- Smaug123 8mo agoThe JIT does this automatically in some cases as of .NET 10 (https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-10/runtime#stack-allocation https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotn...).