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

8
LINES

< > BotCompany Repo | #1005762 - interceptPrintInThisThread

JavaX fragment (include)

// f can return false to suppress regular printing
// call print_raw within f to actually print something
// f preferrably is F1<S, Bool>
static O interceptPrintInThisThread(O f) {
  O old = print_byThread()!;
  print_byThread().set(f);
  ret old;
}

download  show line numbers  debug dex   

Travelled to 11 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1005762
Snippet name: interceptPrintInThisThread
Eternal ID of this version: #1005762/8
Text MD5: a1633c54a8a2498a3459af96aed4b2d8
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-13 16:20:15
Source code size: 256 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 361 / 325
Version history: 7 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1005762 & http://1005762.tinybrain.de