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

7
LINES

< > BotCompany Repo | #1025943 // makeDollarVar - make anonymous dollar variable, counting from 1

JavaX fragment (include)

static new AtomicInteger makeDollarVar_varCount;

sS makeDollarVar(S name) {
  ret "$" + name + incAndGet(makeDollarVar_varCount);
}

sS makeDollarVar() { ret makeDollarVar(""); }

Author comment

Began life as a copy of #1025205

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025943
Snippet name: makeDollarVar - make anonymous dollar variable, counting from 1
Eternal ID of this version: #1025943/4
Text MD5: 3e172dd600341f870fd41be864470eae
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-02 11:30:53
Source code size: 185 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 223 / 255
Version history: 3 change(s)
Referenced in: [show references]