[Issue 1373] typeof(func).stringof fails when func has parameters.

2011-07-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1373


Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution||FIXED


--- Comment #5 from Walter Bright bugzi...@digitalmars.com 2011-07-01 
22:13:17 PDT ---
https://github.com/D-Programming-Language/dmd/commit/28702b21e143807205f6798b000a0c05bb22d5e2

https://github.com/D-Programming-Language/dmd/commit/23bef66be596ab4541fe26a5433f8cdbd92fc4ac

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


[Issue 1373] typeof(func).stringof fails when func has parameters.

2010-04-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1373


Harry Vennik htven...@zonnet.nl changed:

   What|Removed |Added

 CC||htven...@zonnet.nl


--- Comment #4 from Harry Vennik htven...@zonnet.nl 2010-04-26 06:20:08 PDT 
---
This issue bugged me with DMD 2.043 on Mac.

I noticed something peculiar which is demonstrated by this test case:

-
void foo(int i) { }
enum string FOO_TYPE = typeof(foo).stringof;
pragma(msg, Type of foo is:  ~ FOO_TYPE);
-

Compiling that will print:

-
stringof_error.d(2): Error: expected 1 function arguments, not 0
Type of foo is: (void(int i))()
-

So actually, the .stringof is correctly evaluated, but still some unnecessary
check for function arguments makes the compiler generate an error.

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