dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [bugs #11454] BOGUS: incompatible types in event addit


From: James Michael DuPont
Subject: [Pnet-developers] [bugs #11454] BOGUS: incompatible types in event addition
Date: Thu, 30 Dec 2004 13:00:22 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041111 Firefox/1.0 (Debian package 1.0-2)

This mail is an automated notification from the bugs tracker
 of the project: DotGNU Portable.NET.

/**************************************************************************/
[bugs #11454] Latest Modifications:

Changes by: 
                James Michael DuPont <address@hidden>
'Date: 
                Thu 12/30/2004 at 13:00 (Europe/Berlin)

------------------ Additional Follow-up Comments ----------------------------
According to the hackers in #mono, <alexmipego> and <jonp>
this is a feature of mono that implments c# v2 features.  
anonymous delegate support is the name of the feature.
i guess this is then a feature request, it looks like an better error message 
would be in order, that would advise people that this is a c# v2 feature that 
is not supported yet.






/**************************************************************************/
[bugs #11454] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11454>
Project: DotGNU Portable.NET
Submitted by: James Michael DuPont
On: Thu 12/30/2004 at 11:22

Category:  None
Severity:  5 - Average
Item Group:  None
Resolution:  None
Privacy:  Public
Assigned to:  None
Status:  Open


Summary:  BOGUS: incompatible types in event addition

Original Submission:  //I dont know if this is a bug, please advise.
//testcase1.cs:13: incompatible types in event addition: 'void' to 'TEST.foo'
public class  TEST {
        public delegate void foo ();
        public virtual event  foo boo;
}
class test
{
        void foo2()
        {}
        void foo()
        {
            TEST foo;
            foo.boo += foo2; // BUG incompatible types in event addition: 
'void' to 'TEST.foo'
        }
}

Follow-up Comments
------------------


-------------------------------------------------------
Date: Thu 12/30/2004 at 13:00       By: James Michael DuPont <mdupont>
According to the hackers in #mono, <alexmipego> and <jonp>
this is a feature of mono that implments c# v2 features.  
anonymous delegate support is the name of the feature.
i guess this is then a feature request, it looks like an better error message 
would be in order, that would advise people that this is a c# v2 feature that 
is not supported yet.

-------------------------------------------------------
Date: Thu 12/30/2004 at 11:51       By: James Michael DuPont <mdupont>
Well, it turns out that this might be something that is allowed in mono 
(rightly or wrongly) that does not work in pnet.  It is therefore good to have 
this in the pnet bug system so that other people who are porting from mono to 
pnet will know about this issue. 

There is code in frege 
http://www.netalleynetworks.com/community/jgeldart/research/frege/Frege-0.1.0.tar.gz
that needs to be changed to compile on pnet :

-                    Driver.ServiceOwnerChanged += OnServiceOwnerChanged;
+                    Driver.ServiceOwnerChanged += new 
BusDriver.ServiceEventHandler(OnServiceOwnerChanged);

I will see if this is a bug in mono. Or if this is a new feature of .net2 that 
has not been implemented yet in pnet.

mike

-------------------------------------------------------
Date: Thu 12/30/2004 at 11:27       By: James Michael DuPont <mdupont>
//This is not a bug.
//was my fault, here is the good code.
public class  TEST {
        public TEST()
        {}
        public delegate void foo ();
        public virtual event  foo boo;
}
class test
{
        void foo2()
        {}
        void foo3()
        {
            TEST foo;
            foo.boo += new TEST.foo(foo2);
        }
}












For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11454>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]