--- Comment #3 from Andrei Alexandrescu <and...@metalanguage.com> 2009-08-08
11:55:19 PDT ---
(In reply to comment #2)
> 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
> makes it hard for someone reading the code to tell which it is. Since
> pointers and delegates are not generally interchangeable, AISI it's desirable
> to keep their literal notations distinct.
I think type deduction should help here as much as anywhere else. If you do
want a delegate, you can always use the delegate keyword. Plus, all algorithms
in std.algorithm take an efficiency toll when used with literals.
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------