hi.
mcs currently chokes on expressions like
del1 = new MyDelegate( Hello );
del2 = new MyDelegate( World );
(del1 + del2)( 42 ); // this one
i've looked through cs-parser but been unable to find the problem so
far.
but i've found the .jay file at some places being different from the
ECMA documentation. just because i'm curious: why?
sample attached.
regards,
dns
--
___________________________________________________________________________
mailto:[EMAIL PROTECTED]
using System;
class TestDelegate
{
delegate void MyDelegate( int i );
static void Hello( int i )
{
Console.WriteLine( "Hello: {0}", i );
}
static void World( int i )
{
Console.WriteLine( "World: {0}", i );
}
static void Main()
{
MyDelegate del1 = new MyDelegate( Hello );
MyDelegate del2 = new MyDelegate( World );
(del1 + del2)( 42 );
}
}