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

6
LINES

< > BotCompany Repo | #1002593 // callBot - reflectively call function of a bot - synonym of callOtherBot

JavaX fragment (include)

static O callBot(S botID, S method, O... args) {
  O bot = getBot(botID);
  if (bot == null)
    fail("Bot not found: " + botID + ", was calling: " + method + " from " + programID());
  ret call(bot, method, args);
}

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: #1002593
Snippet name: callBot - reflectively call function of a bot - synonym of callOtherBot
Eternal ID of this version: #1002593/1
Text MD5: ed043bb90ed6a5de38d36254ae413c0c
Author: stefan
Category: eleu
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-02-04 16:58:28
Source code size: 221 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 589 / 549
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#3000202 - Answer for stefanreich (>> T conversion bot)
#3000238 - Answer for stefanreich (>> t power bot)
#3000382 - Answer for ferdie (>> t = 1, f = 0)