[Issue 4530] Tidier function types

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


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


Justin Spahr-Summers <Justin.SpahrSummers at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Justin.SpahrSummers at gmail.c
                   |                            |om


--- Comment #1 from Justin Spahr-Summers <Justin.SpahrSummers at gmail.com> 2010-07-28 18:17:15 CDT ---
(In reply to comment #0)
> Allowing/keeping ugly and error-prone function literals in D2 is bad. It's
> better for D2 to keep/allow only _one_ standard, clean and readable syntax for
> functions pointers (and one for delegates, if necessary). Keeping C function
> pointer syntax or something similar in D2 causes troubles.

'a' is not a function literal... it's a declaration of a nested function. The C
syntax for a function pointer would be:

string (*a)();

which I think is pretty unambiguous.

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