[Mono-bugs] [Bug 59391][Maj] New - Missing support for __arglist keyword

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 1 Jun 2004 07:10:55 -0400 (EDT)


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 marek.safar@seznam.cz.

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

--- shadow/59391	2004-06-01 07:10:55.000000000 -0400
+++ shadow/59391.tmp.24494	2004-06-01 07:10:55.000000000 -0400
@@ -0,0 +1,91 @@
+Bug#: 59391
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: marek.safar@seznam.cz               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Missing support for __arglist keyword
+
+Compile this:
+
+public class M
+{
+    
+    public void Method (__arglist)
+    {
+    }
+    
+    public static void Main ()
+    {
+    }
+}
+
+
+Actual Results:
+
+syntax error, got token `CLOSE_PARENS', expecting OPEN_BRACKET STAR IDENTIFIER
+3.cs(8) error CS1041: Identifier expected
+
+Expected Results:
+
+Compilation succeded.
+
+How often does this happen? 
+
+Always
+
+Additional Information:
+
+
+This is major problem because it breaks the implemenentation e.g. corlib to
+be adequate to mscorlib.
+e.g. this method has wrong params in mono
+
+class String {
+public static String Concat (Object obj1, Object obj2, Object obj3, Object
+obj4)
+{
+}
+}
+
+should be
+
+public static String Concat (Object obj1, Object obj2, Object obj3, Object
+obj4, __arglist)
+
+
+I also cannot implement CS3000 error.
+
+Here is the next sample.
+	
+
+int AddInts(__arglist)
+{
+    int sum = 0;
+    ArgIterator iter = new ArgIterator(__arglist);
+    while(iter.GetRemainingCount() > 0)
+    {
+        sum += __refvalue(iter.GetNextArg(), int);
+    }
+    return sum;
+}
+
+void Call()
+{
+    int result = AddInts(__arglist(1, 2, 3, 4, 5));
+}
+
+
+Just for fun here is a list of next undocumented keywords.
+
+__makeref, __reftype, and __refvalue.