Re: Tip of the week - Enhanced resources

new topic     » goto parent     » topic index » view thread      » older message » newer message
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 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu