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



--- Comment #1 from Kenji Hara <k.hara...@gmail.com> 2011-09-22 04:23:56 PDT ---
Reduce test case:

----
extern (C) int function() pfunc;
extern (C) int cfunc(){ return 0; }

// current behavior
static assert(typeof(pfunc).stringof == "int C function()");
static assert(typeof(cfunc).stringof == "intC ()");

// expect (1)
static assert(typeof(pfunc).stringof == "int extern (C) function()");
static assert(typeof(cfunc).stringof == "int extern (C) ()");

// expect (2)
static assert(typeof(pfunc).stringof == "extern (C) int function()");
static assert(typeof(cfunc).stringof == "extern (C) int()");
----

I think #2 is more better.

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

Reply via email to