[Mono-bugs] [Bug 55906][Wis] Changed - concat'ing a large number of strings does not use the params overload

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 22 Mar 2004 12:49:26 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by bmaurer@users.sf.net.

http://bugzilla.ximian.com/show_bug.cgi?id=55906

--- shadow/55906	2004-03-22 12:44:33.000000000 -0500
+++ shadow/55906.tmp.3631	2004-03-22 12:49:26.000000000 -0500
@@ -1,14 +1,14 @@
 Bug#: 55906
 Product: Mono: Compilers
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Wishlist
 Component: C#
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: bmaurer@users.sf.net               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -81,6 +81,37 @@
         IL_0039:  ldloc.0
         IL_003a:  call string valuetype
 [mscorlib]'System.String'::'Concat'(string, string, string, string)
 
 
 While csc generates a call to string.concat (string []).
+
+------- Additional Comments From bmaurer@users.sf.net  2004-03-22 12:49 -------
+Another example of the same thing:
+
+using System;
+
+class T {
+	static void Main ()
+	{
+		string name = "foo";
+		string s =
+		      name + 'c' + 'd';
+	}
+}
+
+we generate:
+
+        IL_0000:  ldstr "foo"
+        IL_0005:  stloc.0
+        IL_0006:  ldloc.0
+        IL_0007:  ldc.i4.s 0x63
+        IL_0009:  box [mscorlib]System.Char
+        IL_000e:  call string valuetype
+[mscorlib]'System.String'::'Concat'(object, object)
+        IL_0013:  ldc.i4.s 0x64
+        IL_0015:  box [mscorlib]System.Char
+        IL_001a:  call string valuetype
+[mscorlib]'System.String'::'Concat'(object, object)
+        IL_001f:  stloc.1
+        IL_0020:  ret
+