4 ms·
> notably, if you're passing data into a function by pointer, it's not going to allocate Isn't it still possible for the value to escape here? For example the
by kevincox 4y ago
> notably, if you're passing data into a function by pointer, it's not going to allocate
Isn't it still possible for the value to escape here? For example the callee could stick it until a global data structure.
In fact it seems like a pointer passed to a function would need to be on the heap "by default" unless the compiler can prove that it doesn't escape.
- throwaway894345 4y agoYeah, you’re probably right.