[Issue 18166] New: std.array.replace should be usable in @safe for dstrings
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed Jan  3 02:56:00 UTC 2018
    
    
  
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 at puremagic.com
          Reporter: greensunny12 at 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'
--
    
    
More information about the Digitalmars-d-bugs
mailing list