https://issues.dlang.org/show_bug.cgi?id=16283
--- Comment #10 from Steven Schveighoffer ---
(In reply to Sobirari Muhomori from comment #9)
> (In reply to Steven Schveighoffer from comment #8)
> > We put up with a lot of grammar inaccuracies that result in simply ignored
> > attributes. We can d
https://issues.dlang.org/show_bug.cgi?id=16283
--- Comment #9 from Sobirari Muhomori ---
(In reply to Steven Schveighoffer from comment #8)
> We put up with a lot of grammar inaccuracies that result in simply ignored
> attributes. We can do better.
You mean you want to disallow this in grammar?
https://issues.dlang.org/show_bug.cgi?id=16283
Steven Schveighoffer changed:
What|Removed |Added
Status|RESOLVED|REOPENED
CC|
https://issues.dlang.org/show_bug.cgi?id=16283
Henry Block changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://issues.dlang.org/show_bug.cgi?id=16283
--- Comment #6 from Sobirari Muhomori ---
Imagine a grammar that expresses this rule: "can't refer to `super` in a struct
method that is not nested in a class method".
--
https://issues.dlang.org/show_bug.cgi?id=16283
--- Comment #5 from Sobirari Muhomori ---
Not sure if this is a bug: what's syntactically valid is not necessarily
semantically valid, and you're asking for a context-sensitive and bloated
grammar, you'll have to duplicate a lot of rules.
--
https://issues.dlang.org/show_bug.cgi?id=16283
--- Comment #4 from Henry Block ---
To be honest, I might have opened a can of worms here. The spec also suggestion
you can put
abstract bool x;
at module scope in a D file, which isn't quite right :-)
I suppose I was reading it a bit to literally
https://issues.dlang.org/show_bug.cgi?id=16283
--- Comment #3 from Henry Block ---
(In reply to Steven Schveighoffer from comment #1)
> I don't think this is an enhancement, it's a bug.
I suppose that's a bug in the Report Bug button on the spec site then! :-)
--
https://issues.dlang.org/show_bug.cgi?id=16283
--- Comment #2 from Steven Schveighoffer ---
(In reply to Steven Schveighoffer from comment #1)
> I don't think this is an enhancement, it's a bug.
Clarification: it's not a bug in the compiler, it's a bug in the spec!
--
https://issues.dlang.org/show_bug.cgi?id=16283
Steven Schveighoffer changed:
What|Removed |Added
Keywords||spec
URL|http://dlang.
10 matches
Mail list logo