wholroyd / retlang

Automatically exported from code.google.com/p/retlang
0 stars 0 forks source link

Compile error #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. MonoDevelop -> Project -> Build Solution

What is the expected output? What do you see instead?
Build Complete

The method signature is:
public IUnsubscriber
SubscribeOnProducerThreads(IProducerThreadSubscriber<T> subscriber)
{

            return
SubscribeOnProducerThreads(subscriber.ReceiveOnProducerThread);

        }

[Task:File=/home/andrew/source/Retlang/src/Retlang/Channels/Channel.cs,
Line=94, Column=58, Type=Error, Priority=Normal, Description=Method
`Retlang.Channels.IProducerThreadSubscriber`1[T].ReceiveOnProducerThread()'
is referenced without parentheses(CS0654)]

What version of the product are you using? On what operating system?
4.0.0 (BETA?) - latest subversion get 
Ubuntu 8.04

Please provide any additional information below.

Original issue reported on code.google.com by ldel2...@gmail.com on 22 Nov 2008 at 5:27

GoogleCodeExporter commented 9 years ago
This looks like a mono compiler bug. That is valid syntax and compiles just 
fine with 
the Microsoft csharp compiler.

Original comment by mike.ret...@gmail.com on 22 Nov 2008 at 5:59

GoogleCodeExporter commented 9 years ago
It may very well be. I am very interested in researching this library, perhaps 
you
can help me understand the intended function and I can adjust for the 
limitations of
the compiler accordingly.

From what I can tell the IProducerThreadSubscriber implements:

void ReceiveOnProducerThread(T msg);

I am guessing that this is a problem:
--SubscribeOnProducerThreads(subscriber.ReceiveOnProducerThread);
since I don't see a void argument implementation.

This compiles but I am unaware of what the unintended consequences may be:

--return SubscribeOnProducerThreads(subscriber);

Thanks in advance.

Original comment by adelpre...@gmail.com on 22 Nov 2008 at 7:13

GoogleCodeExporter commented 9 years ago
I tracked this down to a mono bug and submitted it to the project.

https://bugzilla.novell.com/show_bug.cgi?id=447984

Original comment by mike.ret...@gmail.com on 23 Nov 2008 at 12:23