[Issue 1351] Discrepancies in the language specification

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 27 08:34:35 PDT 2007


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





------- Comment #6 from smjg at iname.com  2007-07-27 10:34 -------
(In reply to comment #0)
> FunctionLiteral // missing colon
>         function Typeopt ( ParameterList )opt FunctionBody // Allows for
> literals like "function int {}". Is this legal?

If it weren't meant to be, surely there wouldn't be the statement

"If omitted it defaults to the empty argument list ()."

in the paragraph immediately below that BNF.

But it does seem to be a mistake that that paragraph talks of ArgumentList
instead of ParameterList.


-- 



More information about the Digitalmars-d-bugs mailing list