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

13
LINES

< > BotCompany Repo | #1005416 // quickPCEval

JavaX fragment (include)

1  
// returns safeUnstructure()'d result
2  
static O quickPCEval(S ip, S expression) {
3  
  S answer = sendToPublicCommBot(ip, forward("Awareness", "please eval java *", expression));
4  
  assertTrue(swic(answer, "ok "));
5  
  ret safeUnstructure(answer.substring(3));
6  
}
7  
8  
static O quickPCEval(S expression) {
9  
  S ip = findAPC();
10  
  if (ip == null)
11  
    fail("No PC known");
12  
  ret quickPCEval(ip, expression);
13  
}

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: 506 / 527
Referenced in: [show references]