Chromium Code Reviews| Index: runtime/lib/string.dart |
| =================================================================== |
| --- runtime/lib/string.dart (revision 6417) |
| +++ runtime/lib/string.dart (working copy) |
| @@ -233,11 +233,17 @@ |
| } |
| /** |
| + * TODO(hausner): remove support for operator + and native method plus(). |
| + */ |
| + String plus(String other) native "String_plus"; |
|
srdjan
2012/04/11 18:32:03
Why not making it private (_plus)?
hausner
2012/04/11 18:36:22
Yes, would have been a good idea. But this code go
|
| + |
| + /** |
| * Convert argument obj to string and concat it with this string. |
| * Returns concatenated string. |
| + * TODO(hausner): remove support for +. |
| */ |
| String operator +(Object obj) { |
| - return this.concat(obj.toString()); |
| + return this.plus(obj.toString()); |
| } |
| /** |