[m-rev.] posix: environment
Michael Day
mikeday at bigpond.net.au
Wed Aug 29 13:35:07 AEST 2001
> On 27-Aug-2001, Michael Day <mikeday at bigpond.net.au> wrote:
> >
> > Added a predicate to access the environment of a process.
>
> What's wrong with io__get_environment_var?
It requires knowledge of which environment variables are available, which
you may not have. It is quite possible that you may wish to write code
that looks through all environment variables for a certain subset (for
example, a CGI module looking for all that begin with HTTP_* and thus
represent HTTP headers).
C programs have the ability to access the entire environment, so it seems
reasonable that Mercury programs should too.
And it's just handy to have the environment as a map, I feel.
Michael
--------------------------------------------------------------------------
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