[m-dev.] for review: teeny changes to string.m

Fergus Henderson fjh at cs.mu.OZ.AU
Mon Oct 30 12:38:52 AEDT 2000


On 27-Oct-2000, Michael Day <mcda at students.cs.mu.oz.au> wrote:
> 
> Oh, another thing I noticed in string.m is that there is no method to
> update the value of a particular character in a string:
> 
> :- pred set(char, int, string, string).
> :- mode set(in, in, in, out) is semidet.
> 
> or some such predicate and a corresponding unsafe variant. Is this an
> intentional lack or is it just that no one has needed it?

I think it's the latter.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
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