Bug 12921 – Module std.getopt does not respect property syntax

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2014-06-14T11:46:00Z
Last change time
2014-06-14T18:03:15Z
Assigned to
nobody
Creator
sfrijters

Comments

Comment #0 by sfrijters — 2014-06-14T11:46:43Z
Compiling some of my code with -property flag set results in /usr/local/stow/dmd/include/d2/std/getopt.d(588): Error: not a property splitter(val, arraySep).map!((a) => to!E(a)) /usr/local/stow/dmd/include/d2/std/getopt.d(441): Error: template instance std.getopt.handleOption!(RunnableTests[]*) error instantiating /usr/local/stow/dmd/include/d2/std/getopt.d(442): instantiated from here: getoptImpl!(string, RunnableTests[]*, string, bool*, string, VerbosityLevel*, string, bool*, string, bool*) /usr/local/stow/dmd/include/d2/std/getopt.d(442): instantiated from here: getoptImpl!(string, string*, string, RunnableTests[]*, string, bool*, string, VerbosityLevel*, string, bool*, string, bool*) /usr/local/stow/dmd/include/d2/std/getopt.d(442): instantiated from here: getoptImpl!(string, string[]*, string, string*, string, RunnableTests[]*, string, bool*, string, VerbosityLevel*, string, bool*, string, bool*) /usr/local/stow/dmd/include/d2/std/getopt.d(392): instantiated from here: getoptImpl!(string, bool*, string, string[]*, string, string*, string, RunnableTests[]*, string, bool*, string, VerbosityLevel*, string, bool*, string, bool*) It looks like the call to map should have a second set of parens?
Comment #1 by sfrijters — 2014-06-14T12:05:42Z
Comment #2 by github-bugzilla — 2014-06-14T18:03:15Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/98bf97467a850bdbdf421e6195eb4f54fbe1ff86 Fix Issue 12921 - Module std.getopt does not respect property syntax https://github.com/D-Programming-Language/phobos/commit/285d027677fe8d340c57632b5ce89ef247714dc0 Merge pull request #2250 from SFrijters/master Fix Issue 12921 - Module std.getopt does not respect property syntax