[phobos] [D-Programming-Language/phobos] 29eec1: Two changes for enum handling in getopt

noreply at github.com noreply at github.com
Sun Apr 10 19:36:58 PDT 2011


Branch: refs/heads/master
Home:   https://github.com/D-Programming-Language/phobos

Commit: 29eec1ee2328f1be12d5c0b7890c21ccbf739623
    https://github.com/D-Programming-Language/phobos/commit/29eec1ee2328f1be12d5c0b7890c21ccbf739623
Author: Jens K. Mueller <jkm at gluey.org>
Date:   2011-04-06 (Wed, 06 Apr 2011)

Changed paths:
  M std/getopt.d

Log Message:
-----------
Two changes for enum handling in getopt

It's better to define enum Color { no, yes } because this enables
writing compact code like if (color) { ... }. Further setting the
variable is done using std.conv's parse which makes the code more
compact and throws if the conversion fails.


Commit: e1b7037e2e2edfdad02b6d422d254463fcdb378a
    https://github.com/D-Programming-Language/phobos/commit/e1b7037e2e2edfdad02b6d422d254463fcdb378a
Author: andralex <andrei at erdani.com>
Date:   2011-04-10 (Sun, 10 Apr 2011)

Changed paths:
  A .gitignore

Log Message:
-----------
Added .gitignore file


Commit: 11fe58fd9650a32ebc9b0d4335960a8d4f91710f
    https://github.com/D-Programming-Language/phobos/commit/11fe58fd9650a32ebc9b0d4335960a8d4f91710f
Author: andralex <andrei at erdani.com>
Date:   2011-04-10 (Sun, 10 Apr 2011)

Changed paths:
  M std/getopt.d
  M win32.mak

Log Message:
-----------
Merge branch 'master' of https://github.com/jkm/phobos into testing-pull-request


Compare: https://github.com/D-Programming-Language/phobos/compare/516de1b...11fe58f


More information about the phobos mailing list