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

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
Mac OS X
Creation time
2014-04-24T08:53:00Z
Last change time
2014-09-11T11:07:47Z
Assigned to
nobody
Creator
rostislav.dzinko

Comments

Comment #0 by rostislav.dzinko — 2014-04-24T08:53:25Z
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} "))
Comment #1 by rostislav.dzinko — 2014-04-24T08:55:33Z