[Issue 3235] Function literals must be deduced as "function" or "delegate"

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 8 11:14:16 PDT 2009


Stewart Gordon <smjg at iname.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |smjg at iname.com
         Resolution|                            |INVALID

--- Comment #2 from Stewart Gordon <smjg at iname.com>  2009-08-08 11:14:14 PDT ---
This is as designed.

"If the keywords function or delegate are omitted, it defaults to being a

Having the type of a function/delegate literal depend on its contents like this
makes it hard for someone reading the code to tell which it is.  Since function
pointers and delegates are not generally interchangeable, AISI it's desirable
to keep their literal notations distinct.

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