[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 16:11:56 PST 2012


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



--- Comment #7 from Kenji Hara <k.hara.pg at gmail.com> 2012-01-16 16:11:52 PST ---
> 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?

Rewriting it to true function declaration is easy, but
fn is looks like a variable so peaple will try to
rebind it with assignment:

  fn = { writeln("another function literal"); };

and will get an error. It is inconsistent.

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