www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5066] New: Array back(set) method would crash when have none elements

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

           Summary: Array back(set) method would crash when have none
                    elements
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: galaxylang gmail.com



---
import std.container;
int main(char[][])
{
   array!int ar;

    ar.back=1;
   //the back(T){} method will enforce(!this.length.empty),so throw an
exception
}

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




---

 import std.container;
 int main(char[][])
 {
    array!int ar;
 
     ar.back=1;
    //the back(T){} method will enforce(!this.empty),so throw an
 exception
 }
i make a mistake :this.length.empty-> this.empty -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 16 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5066


galaxylang <galaxylang gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 04 2010