www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18166] New: std.array.replace should be usable in safe for

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

          Issue ID: 18166
           Summary: std.array.replace should be usable in  safe for
                    dstrings
           Product: D
           Version: D2
          Hardware: x86_64
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: greensunny12 gmail.com

import std.array;
replace("aa"d, 0, 0, "***"d);


onlineapp.d(6): Error:  safe function 'onlineapp.test' cannot call  system
function 'std.array.replace!(immutable(dchar), dstring).replace'

--
Jan 02