[m-dev.] string streams

Michael Day mikeday at corplink.com.au
Sun Nov 19 21:09:07 AEDT 2000


> 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

<in reply to Ralph, whose message I appear to have misplaced>

Oh yes, people keep telling me array(char) wastes three bytes per
character and I keep forgetting. Sorry.

So... what is the recommended way of approaching specialisations like
this, where particular_container(T) can be implemented easily in terms of
generalised_container(T), but for particular instances of T people wish to
use different implementations? Or perhaps I should stop muttering and just
do it...

Michael

--------------------------------------------------------------------------
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