[Nice-commit] Nice/stdlib/nice/lang strings.nice,1.11,1.12
Brought to you by:
bonniot
From: <bo...@us...> - 2003-07-17 19:13:21
|
Update of /cvsroot/nice/Nice/stdlib/nice/lang In directory sc8-pr-cvs1:/tmp/cvs-serv3413/stdlib/nice/lang Modified Files: strings.nice Log Message: Allow `+` to be used to create a String when the right argument is a String. Index: strings.nice =================================================================== RCS file: /cvsroot/nice/Nice/stdlib/nice/lang/strings.nice,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** strings.nice 11 Jun 2003 12:21:25 -0000 1.11 --- strings.nice 17 Jul 2003 19:13:17 -0000 1.12 *************** *** 21,25 **** ****************************************************************/ ! <Any R> String `+`(String s, R o) = s.concat(String.valueOf(o)); int indexOf(String, char) = native int String.indexOf(int); --- 21,27 ---- ****************************************************************/ ! <T> String `+`(String s, T o) = s.concat(String.valueOf(o)); ! <!T> String `+`(T o, String s) = o.toString().concat(s); ! String `+`(String s1, String s2) = s1.concat(s2); int indexOf(String, char) = native int String.indexOf(int); |