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

12
LINES

< > BotCompany Repo | #1001360 // Test case: hotwire and programID

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (250L/3K/8K).

!747

m {
  p {
    Class x = hotwire("#1001359");
    callMain(x);
    S pi = cast get(x, "pi");
    print("#1001359".equals(pi) ? "inner id!" : 
      "#1001360".equals(pi) ? "outer id!" :
      "huh? " + pi);
  }
}
    

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt

Comments [hide]

ID Author/Program Comment Date
1125 stefan We now declare "inner id!" to be the correct output because that's the common case it seems (having the program independent). 2015-10-11 15:24:51

add comment

Snippet ID: #1001360
Snippet name: Test case: hotwire and programID
Eternal ID of this version: #1001360/1
Text MD5: 344ac2c754306b5deda03b793813e798
Transpilation MD5: 1c7d26c41898ad26bad6da577946ac60
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-10-11 15:12:23
Source code size: 234 bytes / 12 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 1028 / 1328
Referenced in: [show references]