Relclient operator with writeln has no output

This forum is to report technical problems with Rel.
Post Reply
Joined:Tue Jun 07, 2011 9:08 pm
Relclient operator with writeln has no output

Post by Blake » Wed Oct 31, 2012 3:03 am

I don't know if this is an error or a feature.
With this operator defined:

Code: Select all

operator huh1 ( n integer ) returns relation { i integer };
    writeln "Hello";
    return relation { tuple { i n }};
end operator;
Calling the operator from the rel client gives no output:

Code: Select all

Response response = connection.evaluate("huh(2)", new CrashHandler(){
              public void process (Throwable t){ }});
            Value value = response.awaitResult(100000);
Removing the writeln from the operator and the results are better.

I don't know that having a writeln in an operator is a good thing when called from the client, but some feedback would be nice.

Site Admin
Joined:Sun Nov 27, 2005 7:19 pm

Re: Relclient operator with writeln has no output

Post by Dave » Wed Oct 31, 2012 10:53 pm

Likewise, I don't know whether it's a bug or a mis-feature. It's certainly a side-effect of the rather simplistic protocol by which the client and server communicate. I'll look into improving this.

Post Reply