static void upgradeModuleVar(fS moduleVar, fS programID, final bool callMain) { S name = snippetWithTitle(programID); upgradeModuleVar(moduleVar, programID, name, callMain); } static void upgradeModuleVar(fS moduleVar, fS programID, S name, final bool callMain) { upgradeModuleVar(moduleVar, programID, name, callMain, null); } static void upgradeModuleVar(fS moduleVar, fS programID, S name, final bool callMain, O afterRestart) { infoBox("Upgrading module " + name); O module = get(mc(), moduleVar); cleanUp(module); set(mc(), moduleVar, null); module = hotwireDependent(programID); if (callMain) callMain(module); set(mc(), moduleVar, module); pcallF(afterRestart); infoBox("Upgraded module " + name); }
Began life as a copy of #1013937
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1013942 |
Snippet name: | upgradeModuleVar |
Eternal ID of this version: | #1013942/5 |
Text MD5: | c4e21f98689985f7d579bfbf186359f6 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-03-20 22:55:07 |
Source code size: | 751 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 418 / 452 |
Version history: | 4 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |