[Issue 7265] Function Literals where a keyword was omitted should be delegate even if inference.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 16 10:15:05 PST 2012


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



--- Comment #6 from Andrei Alexandrescu <andrei at metalanguage.com> 2012-01-16 10:15:03 PST ---
(In reply to comment #5)
> -----
> import std.stdio, std.traits;
> 
> void main()
> {
>     static assert(is(typeof(main) == function)); // true, typeof(main) is
> function
>     static assert(is(typeof(&main) == function)); // false, typeof(&main) is
> function pointer
> }
> -----

I think fn in

auto fn = { ... };

should be the same thing - a name for a function. I guess that's not easy to
implement. Kenji, Walter?

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