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

13
LINES

< > BotCompany Repo | #1005416 // quickPCEval

JavaX fragment (include)

// returns safeUnstructure()'d result
static O quickPCEval(S ip, S expression) {
  S answer = sendToPublicCommBot(ip, forward("Awareness", "please eval java *", expression));
  assertTrue(swic(answer, "ok "));
  ret safeUnstructure(answer.substring(3));
}

static O quickPCEval(S expression) {
  S ip = findAPC();
  if (ip == null)
    fail("No PC known");
  ret quickPCEval(ip, expression);
}

Author comment

Began life as a copy of #766

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005416
Snippet name: quickPCEval
Eternal ID of this version: #1005416/1
Text MD5: 14a4bbc070b1abbe66e8bcb6300527b2
Author: stefan
Category: javax / super cool stuff!
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-11-15 15:51:11
Source code size: 407 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 433 / 446
Referenced in: [show references]