[m-rev.] diff: implement io__set_environment_variable for .NET
Fergus Henderson
fjh at cs.mu.OZ.AU
Sun Nov 3 15:53:45 AEDT 2002
On 03-Nov-2002, Ralph Becket <rafe at cs.mu.OZ.AU> wrote:
> Fergus Henderson, Saturday, 2 November 2002:
> > Index: io.m
> > ===================================================================
> > RCS file: /home/mercury1/repository/mercury/library/io.m,v
> > retrieving revision 1.272
> > +
> > +
> > +io__setenv(Var, Value) :-
> > + string__format("%s=%s", [s(Var), s(Value)], EnvString),
> > + impure io__putenv(EnvString).
>
> Very minor point: I think the following is clearer:
>
> io__setenv(Var, Value) :-
> impure io__putenv(format("%s=%s", [s(Var), s(Value)])).
I'll use this:
io__setenv(Var, Value) :-
impure io__putenv(Var ++ "=" ++ Value).
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
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