|
|
|
|
|
by hvenev
334 days ago
|
|
I'm struggling to understand how this has anything to do with borrow checking. Borrow checking is a way to reason about aliasing, which doesn't seem to be a concern here. This post is about memory management and doesn't seem to be concerned much about safety in any way. In C3, does anything prevent me from doing this: fn int* example(int input)
{
@pool()
{
int* temp_variable = mem::tnew(int);
*temp_variable = input;
return temp_variable;
};
}
|
|