Libraryless. Click here for Pure Java version (9191L/64K).
1 | sO dm_evalJava_veryQuickJava; |
2 | |
3 | static O dm_evalJava_withModule(S expression, O... args) { |
4 | O m = dm_current_generic(); // dm_current_mandatory_generic(); |
5 | S code = evalJava_prep(expression) + [[ |
6 | static new InheritableThreadLocal<WeakReference> dm_currentModule_value; |
7 | |
8 | sO dm_current_mandatory_generic_value; |
9 | |
10 | sO dm_current_mandatory_generic() { ret dm_current_mandatory_generic_value; } |
11 | sO dm_current_generic() { ret dm_current_mandatory_generic(); } |
12 | ]]; |
13 | O obj; |
14 | ifdef dm_evalJava_withModule_debug |
15 | printVars_str("dm_evalJava_withModule: ", +dm_evalJava_veryQuickJava); |
16 | endifdef |
17 | if (dm_evalJava_veryQuickJava != null) |
18 | obj = callF(dm_evalJava_veryQuickJava, code); |
19 | else |
20 | obj = veryQuickJava(code); |
21 | setOpt(obj, programID := programID()); |
22 | makeDependent(obj); |
23 | setOpt(obj, creator_class := newWeakReference(dm_os())); |
24 | dm_pointSubmoduleToMe(obj, m); |
25 | ret evalJava_myProgramID_main_2(obj, args); |
26 | } |
Began life as a copy of #1017136
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1019381 |
Snippet name: | dm_evalJava_withModule |
Eternal ID of this version: | #1019381/11 |
Text MD5: | 27e77adb9cb4c203770885808f0bdc26 |
Transpilation MD5: | ccb8c37b0e82af3ac3c31fe83f27254a |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-12-02 23:15:25 |
Source code size: | 971 bytes / 26 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 444 / 569 |
Version history: | 10 change(s) |
Referenced in: | [show references] |