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

!7

cmodule AutoReloadEleuModules > DynPrintLogAndEnabled {
  transient SS convert = litmap(#1026246 := #1026248);
  switchable S lastSnippetID;

  start {
    dm_onSnippetTranspiled(voidfunc(S snippetID) {
      if (!enabled) ret;
      pcall-infobox {
        ignoreExceptionContaining("woot not found", r {
          S snippetID2 = getOrKeep(convert, fsI(snippetID));
          butterReloadWithInfoBox(setFieldAndReturn(lastSnippetID := snippetID2));
        });
      }
    });
  }

  void doItAgain {
    butterReloadWithInfoBox(lastSnippetID);
  }
}

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: 155 / 25620
Version history: 6 change(s)
Referenced in: [show references]