[Issue 12986] keywords allowed in module names if no ModuleDeclaration is used

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 25 11:07:43 UTC 2022


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

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305 at gmail.com
         Resolution|---                         |WONTFIX

--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
Yes, the problem is that the parser expects an identifier not a keyword after
the the `module` token. This is a minor limitation and as Walter has pointed
out:

"I think that 'fixing' this is probably more trouble than its worth. While such
modules do work for internal modules that have no D interface, they won't work
anyway for regular D modules, and the user will find that out pretty quick."

Closing as WONTFIX.

--


More information about the Digitalmars-d-bugs mailing list