[Issue 357] D keywords in import/module are (unnecessary) forbidden

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 25 16:50:32 PDT 2008


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


bugzilla at digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |WONTFIX




------- Comment #5 from bugzilla at digitalmars.com  2008-06-25 18:50 -------
Although the grammar for the packages says they are Identifiers which
implicitly excludes them being keywords, I'll clarify the documentation on that
point. Otherwise, it is working as designed.

I agree you cannot use arbitrary names for module file names - the names must
be valid D identifiers. While a restriction, I don't think it is onerous or
overly restrictive.

You can put modules in arbitrarily named directories, but those directories
cannot then be used as package names. Package names must correspond to D
identifiers.

I don't think there is enough benefit to changing this to justify the cost.


-- 



More information about the Digitalmars-d-bugs mailing list