[Issue 3838] New: PrimaryExpression rule doesn't permit module scope template instances
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 18 16:51:23 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3838
Summary: PrimaryExpression rule doesn't permit module scope
template instances
Product: D
Version: 2.040
Platform: All
URL: http://digitalmars.com/d/2.0/expression.html
OS/Version: All
Status: NEW
Keywords: spec
Severity: normal
Priority: P2
Component: www.digitalmars.com
AssignedTo: nobody at puremagic.com
ReportedBy: jlquinn at optonline.net
--- Comment #0 from Jerry Quinn <jlquinn at optonline.net> 2010-02-18 16:51:22 PST ---
The PrimaryExpression rule allows module scope identifiers and types but not
template instances. Dmd 2.040 allows them, though. So:
struct ss(S) {
static S s;
}
void foo() {
int x = .ss!(int).s;
}
compiles, though the grammar doesn't permit the '.' in front of ss.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list