digitalmars.D.learn - mixin(__MODULE__) fails if module name is "module"
- sigod (13/15) Jun 22 2014 E.g.:
- bearophile (6/7) Jun 22 2014 I agree. (Walter seems not too keen on strictness). This question
- sigod (2/4) Jun 22 2014 Yeah. I found one: https://issues.dlang.org/show_bug.cgi?id=456
- sigod (1/1) Jun 24 2014 I opened new issue: https://issues.dlang.org/show_bug.cgi?id=12986
- sigod (2/3) Jun 22 2014 I was wrong about `module module;` declaration.
E.g.: module.d: (or just `module module;` in source file) ``` import std.stdio; void main() { foreach (m; __traits(allMembers, mixin(__MODULE__))) { // module.d-mixin-4(4): Error: expression expected, not 'module' writeln(m); } } ``` Documentation says:Package names cannot be keywords, hence the corresponding directory names cannot be keywords, either.Shouldn't keywords be disallowed for module names?
Jun 22 2014
sigod:Shouldn't keywords be disallowed for module names?I agree. (Walter seems not too keen on strictness). This question seems more fit for the main D newsgroup. Look in Bugzilla if there is a enhancement request. Bye, bearophile
Jun 22 2014
This question seems more fit for the main D newsgroup.Should I create new thread in the main newsgroup?Look in Bugzilla if there is a enhancement request.Yeah. I found one: https://issues.dlang.org/show_bug.cgi?id=456
Jun 22 2014
I opened new issue: https://issues.dlang.org/show_bug.cgi?id=12986
Jun 24 2014
On Sunday, 22 June 2014 at 12:52:11 UTC, sigod wrote:module.d: (or just `module module;` in source file)I was wrong about `module module;` declaration.
Jun 22 2014