[m-rev.] Converting univ values to strings

Simon Taylor stayl at cs.mu.OZ.AU
Thu Jul 17 16:20:15 AEST 2003


On 17-Jul-2003, Ralph Becket <rafe at cs.mu.OZ.AU> wrote:
> Estimated hours taken: 6
> Branches: main
> 
> Change the code to print the contents of a univ from io.m to code to turn
> the contents of an arbitrary value into a string in string.m.
> 
> The main motivation for this change is that it has always been awkward to
> swap between io.format etc. and io.print when including arbitrary values in
> printed output.  With the new change, all such formatted output can be
> done via io.format.
> 
> library/io.m:
> 	Move the code for io__do_write_univ etc. to string.m.
> 	Change io__do_write_univ to use the string.m code instead.

I'm not sure that this is a good idea. The performance of this approach
will really suck for large data structures. The double maintenance
problem will go away if/when we implement string streams.

Simon.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list