[m-dev.] string streams
Ralph Becket
rbeck at microsoft.com
Thu Nov 16 23:19:40 AEDT 2000
>From Michael Day on 16/11/2000 11:22:44
>
> I've implemented some simple string streams - input, output and duplex -
> based on what Fergus and Ralph mentioned earlier. However it leaves me
> wondering whether it would be better to use array(char) rather than string
> for storage, to generalise it to in memory streams of any time. There
> could still be a function that went from a stream(char) to a string. Any
> thoughts? Also I wouldn't know what to call these new things, buffers?
> Pipes? Queues? Deques?
array(char) is very wasteful (only one out of every four bytes is used).
Destructively updatable strings might do the trick.
--
Ralph Becket | MSR Cambridge | rbeck at microsoft.com
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list