[Issue 6596] Error message with not extern(C) function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 22 04:24:29 PDT 2011


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



--- Comment #1 from Kenji Hara <k.hara.pg at 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: -------


More information about the Digitalmars-d-bugs mailing list