www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12736] New: nogc std.algorithm.all

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

          Issue ID: 12736
           Summary:  nogc std.algorithm.all
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: Phobos
          Assignee: nobody puremagic.com
          Reporter: bearophile_hugs eml.cc

void main()  nogc {
    import std.ascii: isDigit;
    import std.algorithm: all;
    auto b = "12".all!isDigit;
}


DMD 2.066alpha gives:

temp.d(4,18): Error:  nogc function 'D main' cannot call non- nogc function
'std.algorithm.all!(isDigit).all!string.all'

--
May 12 2014