[Issue 6191] removechars doesn't accept a const string

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 24 19:14:00 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=6191


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #2 from bearophile_hugs at eml.cc 2012-04-24 19:15:02 PDT ---
import std.string, std.stdio;
void main() nothrow {
    const string s = "foAo5x";
    auto s2 = removechars(s, "^A-Z");
}


With dmd 2.060alpha it gives:
test.d(4): Error: removechars is not nothrow
test.d(2): Error: function D main 'main' is nothrow yet may throw


So removechars is not nothrow, but the main problem is fixed, so I close this
issue.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list