Re: Beagle 0.0.10 doesn't compile with Mono 1.0.6



On Sat, 2005-06-04 at 16:35 +0100, Daniel Drake wrote:
> When compiling with mono 1.0.6, you get these errors:
> 
> /Query.cs(70) error CS1501: No overload for method
> `RegisterAsyncResponseHandler' takes `2' arguments
> /Query.cs(70) error CS8006: Could not find any applicable function for this
> argument list
>
> Delegate handling in Mono 1.0.6 seems to be totally broken. See
> http://bugzilla.ximian.com/show_bug.cgi?id=75155
> 
> Does this sound like a good time to set 1.1.x as a minimum requirement?

The error message is wrong, but the behavior isn't.  The ability to wrap
a function as a delegate is a C# 2.0 feature, and mono 1.0.x doesn't
implement it.

In your test case, you have:

	Temp (SomeFunc);

but SomeFunc isn't a MyDelegate, it's a method.  To fix this, you'd do:

	Temp (new MyDelegate (SomeFunc));

The automatic wrapping is just a nice feature (and might be required for
delegate covariance).

That said, it's probably still a good idea to bump up the requirement to
1.1.x.  At this point I think all the major distros are either shipping
1.1.x or packages for them are available from mono-project.org.  And the
1.0.x branch has been discontinued by the developers.

Joe




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