www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12921] New: Module std.getopt does not respect property syntax

https://issues.dlang.org/show_bug.cgi?id=12921

          Issue ID: 12921
           Summary: Module std.getopt does not respect property syntax
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P1
         Component: Phobos
          Assignee: nobody puremagic.com
          Reporter: sfrijters gmail.com

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?

--
Jun 14 2014