std.string phobos

pc peng2cheng2 at yahoo.com
Sat Sep 12 14:29:42 PDT 2009


Is there a way to make the functions in std.string, such as replace, pure? Many pure functions are going to  want to use these. Also, could some of them be executable at compile time?

For me, using D2.032, this did not compile.

pure string replaceXX(string str){
  return replace(str,"XX","X"); 
}

If I am missing something, help!





More information about the Digitalmars-d mailing list