4 ms·
> where I can directly allocate memory in the heap Doesn't the "new" keyword always heap-allocate? I guess modulo optimizations like "this is a value-class tha
by Dewie 12y ago
> where I can directly allocate memory in the heap
Doesn't the "new" keyword always heap-allocate? I guess modulo optimizations like "this is a value-class that won't escape the scope of the method: "in-line" it" (if that is a technique that is in use/possible). Also, it seems reasonable that an array of primitive values would actually be represented as a contiguous piece of memory in the heap.
Sorry if that wasn't what you asked about.