Re: new allocate_string functions

new topic     » goto parent     » topic index » view thread      » older message » newer message

Bernard Ryan wrote:
> 
> Robert Craig wrote:
> > 

[snip]

> 
> Rob:
> 
>   Can't you do this ?
> 
> }}}
<eucode>
>      if mem then
>          poke(mem, s&0)
> --         poke(mem+length(s), 0)  -- Thanks to Aku
>      end if
> </eucode>
{{{


Yes, but its a lot slower. First the 's&0' must create a new sequence
built by appending 0 to s. Then we get to copy that temporary sequence
to RAM, then we get to delete the temporary sequence.


-- 
Derek Parnell
Melbourne, Australia

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu