[Issue 5066] Array back(set) method would crash when have none elements
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Oct 16 22:25:30 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5066
--- Comment #1 from galaxylang <galaxylang at gmail.com> 2010-10-16 22:24:55 PDT ---
(In reply to comment #0)
> 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: -------
More information about the Digitalmars-d-bugs
mailing list