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

11
LINES

< > BotCompany Repo | #1007687 // callF_uncached - old version of callF

JavaX fragment (include)

1  
static O callF_uncached(O f, O... args) {
2  
  if (f == null) ret null;
3  
  if (f instanceof Runnable) {
4  
    ((Runnable) f).run();
5  
    ret null;
6  
  } else if (f instanceof S)
7  
    ret call(mc(), (S) f, args);
8  
  else
9  
    ret call(f, "get", args);
10  
  //else throw fail("Can't call a " + getClassName(f));
11  
}

Author comment

Began life as a copy of #1003483

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: #1007687
Snippet name: callF_uncached - old version of callF
Eternal ID of this version: #1007687/1
Text MD5: ac7d80a0d063d10ef11ce3456dd3764f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-02 13:50:19
Source code size: 306 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 479 / 469
Referenced in: [show references]