Mercurial > projects > ddmd
comparison dmd/Array.d @ 72:2e2a5c3f943a
reduced warnings by adding override to the methods
think this also normalizes different line endings used all over the place
author | Trass3r |
---|---|
date | Sat, 28 Aug 2010 16:19:48 +0200 |
parents | 544b922227c7 |
children | 7e0d548de9e6 |
comparison
equal
deleted
inserted
replaced
71:8e24ef1dd139 | 72:2e2a5c3f943a |
---|---|
23 ///mem.mark(data); | 23 ///mem.mark(data); |
24 ///for (u = 0; u < dim; u++) | 24 ///for (u = 0; u < dim; u++) |
25 ///mem.mark(data[u]); // BUG: what if arrays of Object's? | 25 ///mem.mark(data[u]); // BUG: what if arrays of Object's? |
26 } | 26 } |
27 | 27 |
28 string toString() | 28 override string toString() |
29 { | 29 { |
30 char *p; | 30 char *p; |
31 | 31 |
32 ///char **buf = cast(char**)alloca(dim * (char*).sizeof); | 32 ///char **buf = cast(char**)alloca(dim * (char*).sizeof); |
33 scope string[] buf = new string[dim]; | 33 scope string[] buf = new string[dim]; |