[Issue 3998] BasicType2 rule shouldn't have slice syntax

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 21 22:31:05 PDT 2010


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


Ellery Newcomer <ellery-newcomer at utulsa.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ellery-newcomer at utulsa.edu


--- Comment #1 from Ellery Newcomer <ellery-newcomer at utulsa.edu> 2010-03-21 22:31:02 PDT ---
(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)
}

-- 
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