1 | static S newCase() { |
2 | int id = 1; |
3 | File f = null; |
4 | while (fileExists(f = newFile(javaxDataDir(), formatSnippetID(programID()), str(id)))) |
5 | ++id; |
6 | f.mkdirs(); |
7 | print("Using case: " + id); |
8 | caseID(str(id)); |
9 | ret str(id); |
10 | } |
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: | #1010433 |
Snippet name: | newCase |
Eternal ID of this version: | #1010433/4 |
Text MD5: | b8daf05dd56e464c6e82d3579034051c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-17 22:23:24 |
Source code size: | 239 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 403 / 457 |
Version history: | 3 change(s) |
Referenced in: | [show references] |