Bug 3998 – BasicType2 rule shouldn't have slice syntax
Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2010-03-21T21:13:00Z
Last change time
2014-02-15T02:42:44Z
Keywords
spec
Assigned to
nobody
Creator
jlquinn
Comments
Comment #0 by jlquinn — 2010-03-21T21:13:54Z
It doesn't make sense to have array slice be part of the BasicType2 rule. This rule is for type constructs and array slices only make sense in expressions.
Comment #1 by ellery-newcomer — 2010-03-21T22:31:02Z
(In reply to comment #0)
> It doesn't make sense to have array slice be part of the BasicType2 rule. This
> rule is for type constructs and array slices only make sense in expressions.
They aren't array slices. They're tuple slices, eg:
template T(E...){
alias E T;
}
void main(){
alias T!(char,int,float) K;
alias K[1..$] J; // (int, float)
}