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

22
LINES

< > BotCompany Repo | #1026127 // Auto-Reload Eleu Modules On Server

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 1113K of libraries. Click here for Pure Java version (9136L/46K).

1  
!7
2  
3  
cmodule AutoReloadEleuModules > DynPrintLogAndEnabled {
4  
  transient SS convert = litmap(#1026246 := #1026248);
5  
  switchable S lastSnippetID;
6  
7  
  start {
8  
    dm_onSnippetTranspiled(voidfunc(S snippetID) {
9  
      if (!enabled) ret;
10  
      pcall-infobox {
11  
        ignoreExceptionContaining("woot not found", r {
12  
          S snippetID2 = getOrKeep(convert, fsI(snippetID));
13  
          butterReloadWithInfoBox(setFieldAndReturn(lastSnippetID := snippetID2));
14  
        });
15  
      }
16  
    });
17  
  }
18  
19  
  void doItAgain {
20  
    butterReloadWithInfoBox(lastSnippetID);
21  
  }
22  
}

Author comment

Began life as a copy of #1021905

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1026127
Snippet name: Auto-Reload Eleu Modules On Server
Eternal ID of this version: #1026127/7
Text MD5: 56732dca6855e541da59b1d3bc6ede21
Transpilation MD5: 7e333e542e9b5cbbfed52b153b99fa23
Author: stefan
Category: javax
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-09-05 21:08:21
Source code size: 555 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 220 / 25712
Version history: 6 change(s)
Referenced in: [show references]