!include once #1027168 // programID variable static String getProgramID() { return nempty(programID) ? formatSnippetIDOpt(programID) : "?"; } ifndef LeanMode // TODO: ask JavaX instead static String getProgramID(Class c) { S id = (String) getOpt(c, "programID"); if (nempty(id)) ret formatSnippetID(id); ret "?"; } endifndef static String getProgramID(Object o) { ret getProgramID(getMainClass(o)); }
download show line numbers debug dex old transpilations
Travelled to 17 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1001112 |
| Snippet name: | getProgramID - now returns formatted ID |
| Eternal ID of this version: | #1001112/3 |
| Text MD5: | a9efb76ce590e93ada5d95c6dc285bf4 |
| Author: | stefan |
| Category: | |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-02-23 22:09:03 |
| Source code size: | 435 bytes / 19 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1305 / 7200 |
| Version history: | 2 change(s) |
| Referenced in: | #1002427 - Accellerating 629 (SPIKE) #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1027168 - programID variable #1029884 - getProgramIDOrNull #3000382 - Answer for ferdie (>> t = 1, f = 0) |