Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

16
LINES

< > BotCompany Repo | #1004204 // talkToMainProgram - talk to a main program with a certain ID loaded in a VM

JavaX fragment (include)

static DialogIO talkToMainProgram(S progID) {
  for (DialogIO io : talkToAllVMs()) {
    bool close = true;
    try {
      S pID = io.ask("what is the main program id?");
      if (sameSnippetID(pID, progID)) {
        close = false;
        ret io;
      }
    } finally {
      if (close)
        io.close();
    }
  }
  null;
}

Author comment

Began life as a copy of #1004203

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1004204
Snippet name: talkToMainProgram - talk to a main program with a certain ID loaded in a VM
Eternal ID of this version: #1004204/1
Text MD5: 655166491eff2fe4f208ecd997856e73
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-10 15:15:02
Source code size: 346 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 573 / 555
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1010645 - sendToVMsRunningProgram