1 | please include function print. // for print_log |
2 | |
3 | static L hotwire_copyOver_after = synchroList(); |
4 | |
5 | static void hotwire_copyOver(Class c) { |
6 | // TODO: make a mechanism for making such "inheritable" fields |
7 | for (S field : ll('print_log, 'print_silent, 'androidContext, '_userHome)) |
8 | setOptIfNotNull(c, field, getOpt(mc(), field)); |
9 | |
10 | ifdef hotwire_copyOver_extend |
11 | hotwire_copyOver_extend(c); |
12 | endifdef |
13 | |
14 | setOptIfNotNull(c, mainBot := getMainBot()); |
15 | setOpt(c, creator_class := new WeakReference(mc())); |
16 | pcallFAll(hotwire_copyOver_after, c); |
17 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003123 |
Snippet name: | hotwire_copyOver - copy standard fields to sub program/bot; always done in hotwiring class (not in core) |
Eternal ID of this version: | #1003123/8 |
Text MD5: | eb5e6ea234a0971d77699521a590c554 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-14 13:43:32 |
Source code size: | 575 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 706 / 2063 |
Version history: | 7 change(s) |
Referenced in: | [show references] |