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

16
LINES

< > BotCompany Repo | #1016185 // Ghost Modules (Deleted but still in memory)

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

Libraryless. Click here for Pure Java version (4998L/33K).

!7

sclass GhostModules extends DynCalculatedList {
   void start {
    ownTimer(doEvery(30.0, r updateMe));
  }
  
  L<S> calc() {
    ret map(dm_ghostModules(), func(Object c, GhostModule m) {
      S programID = str(getOpt(getMainClass(c), 'programID));
      bool hasInstance = m.instance! != null;
      ret programID + "/" + shortClassName(c) + " - " + or2(m.name, "?")
        + (hasInstance ? "" : " [instance gone]");
    });
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016185
Snippet name: Ghost Modules (Deleted but still in memory)
Eternal ID of this version: #1016185/7
Text MD5: 6cd1b9687241c4e3523f0e11dc6f2aae
Transpilation MD5: 62bfbe06806e66be126f57b5e1cf3ec0
Author: stefan
Category: javax / stefan's os
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-24 01:57:08
Source code size: 455 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 395 / 60656
Version history: 6 change(s)
Referenced in: [show references]