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

9
LINES

< > BotCompany Repo | #1007945 // makeAndCall_cached - compile standard function into program and call it (& keep made programs)

JavaX fragment (include)

// contains voidfunc(childClass)
static new ThreadLocal makeAndCall_initChild;

static O makeAndCall_cached(S functionName, O... args) {
  Class c = loadFunctions_cached(functionName);
  AutoCloseable closer = cast callF(makeAndCall_initChild!, c);
  temp closer;
  ret preciseCall(c, functionName, args);
}

Author comment

Began life as a copy of #1007857

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: #1007945
Snippet name: makeAndCall_cached - compile standard function into program and call it (& keep made programs)
Eternal ID of this version: #1007945/5
Text MD5: 0ae5687fd9c5f11ef9c5af2e42e3ba08
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-03 02:41:26
Source code size: 315 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 650 / 689
Version history: 4 change(s)
Referenced in: [show references]