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

18
LINES

< > BotCompany Repo | #1005278 // Test Scenarios

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

Libraryless. Click here for Pure Java version (3031L/19K/67K).

!752

!include #1005277 // Scenarios

sclass Counter extends Concept {
  long n;
  
  *() {}
  *(long *n) {}
}

p {
  loadAndAutoSaveConcepts();

  long n = max(0, maxL(collect(mainScenario.listConcepts(Counter.class), "n")))+1;
  print("n=" + n);
  new Counter(n);
}

Author comment

Began life as a copy of #1004864

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

-
Snippet ID: #1005278
Snippet name: Test Scenarios
Eternal ID of this version: #1005278/1
Text MD5: 56ac897ed11760e841440bd50d3c3c8d
Transpilation MD5: 116e4bc8e4d55a6e3f1ce1e2a01b8641
Author: stefan
Category: javax / concepts
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-10-29 01:26:24
Source code size: 284 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 537 / 592
Referenced in: