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

14
LINES

< > BotCompany Repo | #1019791 // dm_reloadAllModulesWithSnippetID

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (9542L/68K).

static L dm_reloadAllModulesWithSnippetID(S snippetID) {
  new L reloadedModules;
  bool first = true;
  for (O m : dm_modules()) pcall {
    continue unless sameSnippetID(dm_moduleSnippetID(m), snippetID);
    temp dm_codeSharingEnabledInOS() && !first
      ? tempSetOpt(dm_os(), startModule_doShare := true)
      : null;
    dm_reloadModule(m);
    reloadedModules.add(m);
    first = false;
  }
  ret reloadedModules;
}

Author comment

Began life as a copy of #1018183

download  show line numbers  debug dex  old transpilations   

Travelled to 10 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, odhhsrjjbcgr, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019791
Snippet name: dm_reloadAllModulesWithSnippetID
Eternal ID of this version: #1019791/4
Text MD5: 42c8712ca5bc7d5b3d82e465b7cac089
Transpilation MD5: 5860654f79e995fcfd722dd296c809c1
Author: stefan
Category: javax / dynamic modules
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-06-22 00:10:24
Source code size: 437 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 270 / 350
Version history: 3 change(s)
Referenced in: [show references]