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

8
LINES

< > BotCompany Repo | #1028866 // getVar_rec - recursively unpack IVar/IF0

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2457L/16K).

1  
sO getVar_rec(O o) {
2  
  int safety = 0;
3  
  while ping (o instanceof IF0) {
4  
    if (++safety >= 100) fail("safety");
5  
    o = o/IF0!;
6  
  }
7  
  ret o;
8  
}

Author comment

Began life as a copy of #1025651

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1028866
Snippet name: getVar_rec - recursively unpack IVar/IF0
Eternal ID of this version: #1028866/4
Text MD5: 1026e3fd9885f0ffbf1c793f1f2feedb
Transpilation MD5: 20b7411ccbf39c177f28a5eef786f6e2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-10 15:56:57
Source code size: 151 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 177 / 260
Version history: 3 change(s)
Referenced in: [show references]