www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3998] New: BasicType2 rule shouldn't have slice syntax

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3998

           Summary: BasicType2 rule shouldn't have slice syntax
           Product: D
           Version: 2.041
          Platform: All
               URL: http://digitalmars.com/d/2.0/declaration.html
        OS/Version: All
            Status: NEW
          Keywords: spec
          Severity: normal
          Priority: P2
         Component: www.digitalmars.com
        AssignedTo: nobody puremagic.com
        ReportedBy: jlquinn optonline.net



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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 21 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3998


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

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



22:31:02 PDT ---

 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: -------
Mar 21 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3998


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |INVALID



17:44:59 PST ---
Ellery is right.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 23 2012