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).

1  
static L dm_reloadAllModulesWithSnippetID(S snippetID) {
2  
  new L reloadedModules;
3  
  bool first = true;
4  
  for (O m : dm_modules()) pcall {
5  
    continue unless sameSnippetID(dm_moduleSnippetID(m), snippetID);
6  
    temp dm_codeSharingEnabledInOS() && !first
7  
      ? tempSetOpt(dm_os(), startModule_doShare := true)
8  
      : null;
9  
    dm_reloadModule(m);
10  
    reloadedModules.add(m);
11  
    first = false;
12  
  }
13  
  ret reloadedModules;
14  
}

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: 274 / 355
Version history: 3 change(s)
Referenced in: [show references]