Relclient operator with writeln has no output

This forum is to report technical problems with Rel.
Post Reply
Blake
Posts: 9
Joined: Tue Jun 07, 2011 9:08 pm

Relclient operator with writeln has no output

Post by Blake »

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 };
  begin;
    writeln "Hello";
    return relation { tuple { i n }};
  end;
end operator;
Calling the operator from the rel client gives no output:

Code: Select all

Response response = connection.evaluate("huh(2)", new CrashHandler(){
              @Override
              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.
Dave
Site Admin
Posts: 372
Joined: Sun Nov 27, 2005 7:19 pm

Re: Relclient operator with writeln has no output

Post by Dave »

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