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

18
LINES

< > BotCompany Repo | #1017869 // DerivedMechLists

JavaX fragment (include)

1  
sclass DerivedMechLists extends VirtualMechLists {
2  
  new SimpleMechLists a;
3  
  VirtualMechLists b = new DefaultMechLists;
4  
5  
  S mL_raw(S listName) {
6  
    S text = a.mL_raw(listName);
7  
    if (text != null) ret text;
8  
    ret b.mL_raw(listName);
9  
  }
10  
  
11  
  void append(S listName, S text) {
12  
    a.append(listName, text);
13  
  }
14  
  
15  
  void setText(S listName, S text) {
16  
    a.setText(listName, text);
17  
  }
18  
}

Author comment

Began life as a copy of #1017767

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1017869
Snippet name: DerivedMechLists
Eternal ID of this version: #1017869/2
Text MD5: e661ae92c9416bc92e1beaba9851290b
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-18 23:02:41
Source code size: 410 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 356 / 910
Version history: 1 change(s)
Referenced in: [show references]