Download Jar. Libraryless. Click here for Pure Java version (1373L/9K).
!7 p { go(); // Call myself as a module call(hotwire(programID()), 'go); } svoid go { twice { long id1 = objectID(mc()); long id2 = objectID(5); long id3 = objectID(1000000000L); print("ids: " + id1 + ", " + id2 + ", " + id3); print(); print("Live IDs: " + objectID_liveIDs()); gc(); print("Live IDs after GC: " + objectID_liveIDs()); } }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1010612 |
Snippet name: | Test objectID - give each object a VM-unique long ID [OK] |
Eternal ID of this version: | #1010612/8 |
Text MD5: | 817472fcecd1eb0fdbec8f503c62b68e |
Transpilation MD5: | c28e25573b2ee619dbd5643e6388bdeb |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-23 08:50:52 |
Source code size: | 405 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 522 / 1287 |
Version history: | 7 change(s) |
Referenced in: | [show references] |