Summary: std.demangle doesn't parse ref, pure, notrow
           Product: D
           Version: 2.032
          Platform: All
        OS/Version: Linux
            Status: NEW
          Keywords: patch
          Severity: minor
          Priority: P2
         Component: Phobos

--- Comment #0 from Lutger <> 2009-09-20 11:11:41 
PDT ---
There are four 'attributes' defined in the ABI which std.demangle currently
doesn't parse: pure, nothrow, ref and property: 

import std.demangle;

void main()
    assert(demangle("_D3fooFNaNbZv") == "pure nothrow void foo()");

I've attached a patch (my first), feedback appreciated if something is not

I didn't know how property is supposed to be demangled, so that one is just
ignored. Also, this patch assumes all attributes are valid for functions and
delegates and just ignores attributes for calling conventions other that D.
Again, not sure if that's ok.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to