[Issue 16283] [Modules]

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jul 18 14:51:48 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16283

Steven Schveighoffer <schveiguy at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |briancschott at gmail.com
         Resolution|INVALID                     |---

--- Comment #8 from Steven Schveighoffer <schveiguy at yahoo.com> ---
Sorry, but that's lazy. We can easily express the grammar that a module cannot
have a constructor (in contrast to your analogy, there is a separate module
grammar from classes, so we have a perfect spot to outlaw it).

We put up with a lot of grammar inaccuracies that result in simply ignored
attributes. We can do better.

Even if the actual code treats the grammar for modules and classes the same,
the documentation can reflect the actual result. Right now, it looks like
constructors are allowed.

CC grammar guru Brian

--


More information about the Digitalmars-d-bugs mailing list