Libraryless. Click here for Pure Java version (3156L/20K/68K).
1 | !752 |
2 | |
3 | !include #1004863 // Dynamic Concepts |
4 | |
5 | sclass Counter extends Concept { |
6 | long n; |
7 | |
8 | *() {} |
9 | *(long *n) {} |
10 | } |
11 | |
12 | p { |
13 | mainConcepts.loadConcepts(); |
14 | mainConcepts.autoSaveConcepts(); |
15 | |
16 | long n = max(0, maxL(collect(mainConcepts.listConcepts(Counter.class), "n")))+1; |
17 | print("n=" + n); |
18 | new Counter(n); |
19 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, wltunwwkxhxr
No comments. add comment
Snippet ID: | #1004864 |
Snippet name: | Test Dynamic Concepts |
Eternal ID of this version: | #1004864/1 |
Text MD5: | a69988c554addbc3c6e7d6c521d1be6f |
Transpilation MD5: | b5d081182f52b17d01f603853e5c2638 |
Author: | stefan |
Category: | javax / talking robots |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-11-20 12:33:03 |
Source code size: | 331 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 550 / 687 |
Referenced in: | [show references] |