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

6
LINES

< > BotCompany Repo | #1020139 // dm_call - call function in a module. should also work from a non-module if moduleOrID is a direct reference

JavaX fragment (include)

sO mapMethodLike dm_call(O moduleOrID, S method, O... args) {
  O mod = dm_getModule(moduleOrID);
  if (mod == null) null;
  temp dm_enter(mod);
  ret call_withVarargs(mod, method, args);
}

Author comment

Began life as a copy of #1019141

download  show line numbers  debug dex  old transpilations   

Travelled to 17 computer(s): bhatertpkbcr, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, lnbujpyubztb, mowyntqkapby, mqqgnosmbjvj, omdjrrnzbjjv, podlckwnjdmb, pyentgdyhuwx, pzhvpgtvlbxg, snaazhdonpnp, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv

No comments. add comment

Snippet ID: #1020139
Snippet name: dm_call - call function in a module. should also work from a non-module if moduleOrID is a direct reference
Eternal ID of this version: #1020139/7
Text MD5: dbb8a29c5ced6e891c5098374a2dee8b
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-03 14:02:32
Source code size: 194 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 427 / 755
Version history: 6 change(s)
Referenced in: [show references]