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

13
LINES

< > BotCompany Repo | #1005151 // runLocalHot

JavaX fragment (include)

static Class runLocalHot(S fileName) {
  File f = userFile("Documents/Hot Code/" + fileName);
  S code = loadTextFile(f);
  if (code == null)
    fail("File not found: " + f2s(f));
  printIndent("| ", code);
  
  print("Hotwiring \*fileName*/...");
  Class main = hotwireSource(code);
  print("Running!");
  callMain(main);
  ret main;
}

Author comment

Began life as a copy of #1005142

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005151
Snippet name: runLocalHot
Eternal ID of this version: #1005151/1
Text MD5: c8f5c21dfb46e56550bd95d5194c59f6
Author: stefan
Category: javax / hot
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-10-17 01:00:21
Source code size: 349 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 466 / 461
Referenced in: [show references]