static DialogIO talkToThisVM() { ret new talkToThisVM_IO; } sclass talkToThisVM_IO extends DialogIO { L<S> answers = ll(thisVMGreeting()); bool isLocalConnection() { true; } bool isStillConnected() { true; } int getPort() { ret vmPort(); } void sendLine(S line) { answers.add(or2(sendToThisVM_newThread(line), "?")); } S readLineImpl() ctex { ret popFirst(answers); } public void close {} Socket getSocket() { null; } }
Began life as a copy of #1001076
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1007612 |
Snippet name: | talkToThisVM |
Eternal ID of this version: | #1007612/6 |
Text MD5: | 672c0e5e31610b6b2e8e27bfbc4a9b47 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-13 21:38:11 |
Source code size: | 484 bytes / 22 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 463 / 504 |
Version history: | 5 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |