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

7
LINES

< > BotCompany Repo | #1025205 - makeVar - make anonymous variable (fairly dummy version, but works)

JavaX fragment (include)

static new AtomicInteger makeVar_varCount;

static S makeVar(S name) {
  ret "_" + name + "_" + getAndInc(makeVar_varCount);
}

static S makeVar() { ret makeVar(""); }

download  show line numbers  debug dex   

Travelled to 2 computer(s): mqqgnosmbjvj, tvejysmllsmz

No comments. add comment

Snippet ID: #1025205
Snippet name: makeVar - make anonymous variable (fairly dummy version, but works)
Eternal ID of this version: #1025205/1
Text MD5: f82f92578886aa516d0bd68762736e26
Author: stefan
Category: javax / transpiling
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-13 13:40:03
Source code size: 173 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 10 / 16
Referenced in: [show references]