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: 444 / 773
Version history: 6 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1021648 - dm_callService - lookup module by service name & call function in it
#1021842 - dm_pcall - call function in a module safely, return null on error
#1024173 - dm_rcall - call function in a module, reverse syntax (method name, module, args)
#1025392 - dm_callStem - call a module's stem
#1025533 - dm_callMyself - call function in current module
#1026335 - dm_callModuleWithLibID
#1027195 - dm_callWithImport - dm_call, quickImport result
#1028675 - dm_call_assertModuleExists
#1029049 - dm_call_resolved - call function in an already resolved module