[Issue 4530] Tidier function types

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 28 16:40:29 PDT 2010


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


Stewart Gordon <smjg at iname.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg at iname.com


--- Comment #2 from Stewart Gordon <smjg at iname.com> 2010-07-28 16:40:28 PDT ---
(In reply to comment #1)
> string (*a)();
> 
> which I think is pretty unambiguous.

It isn't.  Could be a function called string, which is being called with
argument (*a), and the function returned from that call then called with an
empty argument list.

D grammar aims to be unambiguous.  Removing C-style casts has already been a
step in the right direction.  Removing C-style function pointer declarations
would be another.

-- 
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