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

23
LINES

< > BotCompany Repo | #1003013 // Mental Nodes (dev.)

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (124L/1K/4K).

1  
!759
2  
3  
abstract sclass Ref {
4  
  abstract S getID();
5  
}
6  
7  
sclass Node extends Ref {
8  
  S id = randomID(12);
9  
  S name;
10  
  
11  
  S getID() {
12  
    ret id;
13  
  }
14  
  
15  
  toString {
16  
    ret id + " - " + or2(name, "?");
17  
  }
18  
}
19  
20  
p {
21  
  print(new Node);
22  
  print(new Node);
23  
}

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: #1003013
Snippet name: Mental Nodes (dev.)
Eternal ID of this version: #1003013/1
Text MD5: 8cb63b9415be961dc27a12d005c986a7
Transpilation MD5: 9e1c718d369ca7de97d6da1d0ffb39cc
Author: stefan
Category: logic bots
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-04-18 22:14:28
Source code size: 270 bytes / 23 lines
Pitched / IR pitched: No / No
Views / Downloads: 648 / 644
Referenced in: [show references]