[mercury-users] getopt
Fergus Henderson
fjh at cs.mu.OZ.AU
Mon Feb 24 13:16:58 AEDT 2003
On 24-Feb-2003, Michael Day <mikeday at yeslogic.com> wrote:
>
> % :- pred option_default(option::out, option_data::out) is nondet.
> % Nondeterministically returns all the options with their
> % corresponding types and default values.
>
> Why is this nondet rather than multi?
Hysterical raisons, I think -- the getopt module was written before we
supported "multi".
Unfortunately changing it to "multi" now would break any program using
getopt. The breakage would be a kind that would be easy to fix, but
it would be a bit of a pain.
--
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-users mailing list
post: mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the users
mailing list