Return value from getopt?
Jarrett Billingsley
kb3ctd2 at yahoo.com
Wed Jan 23 06:26:03 PST 2008
"Janice Caron" <caron800 at googlemail.com> wrote in message
news:mailman.14.1201077872.5260.digitalmars-d at puremagic.com...
>
> If I had to guess, I'd guess that true means success and false means
> failure ... or possibly the other way round. But ... if either of
> these possibilities are true, then surely that violates the D
> principles established in the document
You don't have to guess. The source code for Phobos is available for your
perusal in every D compiler distribution. And you're right, it just returns
true for success and false for failure.
> If the second case, please can the function signature be changed to
> return void, and an exception thrown on error?
It probably should..
More information about the Digitalmars-d
mailing list