Thanks Viktor. it still does not work if I do that in the interactive loop:
Error[java.lang.ClassNotFoundException:$line3.$read$$iw$$iw$$anonfun$1
It works if I embed the same interaction in an object, but that's not what I want.
A bit of context:
We have data/tables on remote nodes that we hope to interact with via actors. The interaction is really SQL-like queries except Scala is used in place of SQL. Hence our need for sending code typed (and therefore OTF compiled) into the interactive loop.
Perhaps, there is a better approach...
Best Regards.
-----------------------------