[Issue 4505] Type literal of pure function pointer inside function signature

2020-08-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4505

Mathias LANG  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||pro.mathias.l...@gmail.com
 Resolution|--- |WONTFIX

--- Comment #3 from Mathias LANG  ---
As mentioned by Andrej, it's possible if you put the keyword on the RHS, which
is the recommended way to do it nowadays. I don't think that's an issue worth
fixing, so marking as WONTFIX.

--


[Issue 4505] Type literal of pure function pointer inside function signature

2015-03-02 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4505

--- Comment #2 from Kenji Hara  ---
*** Issue 10603 has been marked as a duplicate of this issue. ***

--


[Issue 4505] Type literal of pure function pointer inside function signature

2010-08-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4505


Andrej Mitrovic  changed:

   What|Removed |Added

 CC||andrej.mitrov...@gmail.com


--- Comment #1 from Andrej Mitrovic  2010-08-29 
19:11:49 PDT ---
I think this is a problem of the keyword pure trying to act as a type specifier
for the return type ( See also my bug 4734 for a similar issue).

If you put pure after the function definition but before the identifier, like
so:

pure int foo4(int function(int) pure func, int x) {

then your example compiles and all asserts pass.

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