[m-rev.] diff: implement io__set_environment_variable for .NET

Ralph Becket rafe at cs.mu.OZ.AU
Sun Nov 3 01:22:03 AEDT 2002


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)])).

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