Re: new allocate_string functions
- Posted by Derek Parnell <ddparnell at bigpond.com> Sep 13, 2004
- 402 views
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