Re: Tip of the week - Enhanced resources
- Posted by ne1uno Oct 31, 2010
- 1330 views
irv said...
Does this apply to allocate_string as well? As in a function:
function something(sequence s) atom x = allocate_string(s) -- do something with x return whatever end function
No free(x) needed?
yes, no free, but you have to add TRUE for the cleanup param
function something(sequence s) atom x = allocate_string(s,1) -- do something with x --free handled by euphoria return whatever end function