Uses 1113K of libraries. Click here for Pure Java version (2673L/14K).
1 | !7 |
2 | |
3 | // Phase 1: comment out _renameClasses and call main class Name1 |
4 | // Load module |
5 | // Reload module |
6 | // Phase 2: put _renameClasses back nin and call main class Name2 |
7 | // Reload module |
8 | |
9 | static MapSO _renameClasses = litmap("Name1" := "Name2"); |
10 | |
11 | cm Name2 > DynPrintLog { |
12 | start { |
13 | print("I am " + className(me()); |
14 | print("Stem says: " + getOpt _className(dm_stem())); |
15 | } |
16 | } |
Began life as a copy of #1032110
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1032120 |
Snippet name: | Rename Module Class Test (OK) |
Eternal ID of this version: | #1032120/7 |
Text MD5: | 4af276a05dd4630d520c27a9c9dd99b2 |
Transpilation MD5: | 7a26c4f3a49997743d39b503862c726e |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-08-14 02:16:37 |
Source code size: | 393 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 175 / 229 |
Version history: | 6 change(s) |
Referenced in: | [show references] |