[Issue 500] Struct Initializers conflict with Delegate Literals in initializers

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 14 11:03:36 PST 2006


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





------- Comment #2 from smjg at iname.com  2006-11-14 13:03 -------
(In reply to comment #1)
> Not sure it's a bug, that error is because of syntax conflict with struct
> initializers (http://www.digitalmars.com/d/struct.html). It's a limitation that
> might or might not be fixable, I dunno. (It does seem possible for the grammar
> to differentiate

The only cases parseable as either a struct init or a function/delegate body
are

{ }
{ { } }
{ { { } } }
and so on.  Otherwise, it's obvious whether a { ... } contains expressions or
statements.


-- 




More information about the Digitalmars-d-bugs mailing list