www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12631] New: std.string.isNumeric uses among without explicit

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

          Issue ID: 12631
           Summary: std.string.isNumeric uses among without explicit
                    braces when calling 'std.algorithm.among' when
                    compiling with dmd -property flag
           Product: D
           Version: D2
          Hardware: All
                OS: Mac OS X
            Status: NEW
          Severity: minor
          Priority: P1
         Component: Phobos
          Assignee: nobody puremagic.com
          Reporter: rostislav.dzinko gmail.com

std.string.isNumeric uses among without explicit braces when calling
'std.algorithm.among' when compiling with dmd -property flag

./phobos/std/string.d(3181): Error: not a property s[0].among!('-', '+')
./phobos/std/string.d(3210): Error: not a property c.among!('e', 'E')
./phobos/std/string.d(3217): Error: not a property s[i + 1LU].among!('-', '+')
./phobos/std/string.d(3259): Error: not a property c.among!('u', 'l', 'U', 'L')
./phobos/std/string.d(3265): Error: not a property c.among!('i', 'I')
./phobos/std/string.d(3267): Error: not a property c.among!('l', 'L', 'f', 'F',
'i', 'I')
./phobos/std/string.d(3270): Error: not a property c.among!('_', ',')
./cocoa.d/source/cocoa.d(638):        called from here:
isNumeric(str[2..__dollar - 1LU], false)
./cocoa.d/source/cocoa.d(641):        called from here: containsOnlyTag("
${123}   ")
./cocoa.d/source/cocoa.d(641):        while evaluating: static
assert(containsOnlyTag(" ${123}   "))

--
Apr 24 2014