Paste: StreamSocket

Author: blei
Mode: text
Date: Mon, 7 Feb 2011 19:39:23
Plain Text |
import io.sockets.*;

main() {
    var inet = Inet("www.google.com", 80);
    var s1 = StreamSocket(inet);
    var s2 = StreamSocket(inet);
    s2 = move(s1);
}



###############################
    var s1 = StreamSocket(inet);
    var s2 = StreamSocket(inet);
    s2 = move(s1);
----^
}

###############################
test.clay(7,4): error: no matching operation

compilation context: 
  assign(StreamSocket, StreamSocket)
  main()
  getExitCode()
  callMain(Static[main])

New Annotation

Summary:
Author:
Mode:
Body: