[Issue 3334] std.demangle doesn't parse ref, pure, nothrow

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 23 02:30:24 PDT 2011


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


kennytm at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
                 CC|                            |kennytm at gmail.com
         Resolution|                            |FIXED


--- Comment #4 from kennytm at gmail.com 2011-04-23 02:16:46 PDT ---
Looks like this has been fixed.

--------------------------
module x;
import core.demangle, std.traits;

@property ref pure nothrow int foo(ref int z) {
    return z;
}
@safe void bar() {
}
@trusted void baz() {
}

void main() {
    assert(demangle(mangledName!foo) == "pure nothrow ref @property int
x.foo(ref int)");
    assert(demangle(mangledName!bar) == "@safe void x.bar()");
    assert(demangle(mangledName!baz) == "@trusted void x.baz()");
}
--------------------------

-- 
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