3 ms·
Incidentally that makes it super easy to mock out or intercept subsystems if they use dynamically scoped hooks e.g. in most languages intercepting stdio is a pa
by masklinn 6y ago
Incidentally that makes it super easy to mock out or intercept subsystems if they use dynamically scoped hooks e.g. in most languages intercepting stdio is a pain in the ass (you might have to swap out multiple globals, it's not thread-safe, etc…).
If you're in CL however, you can just rebind standard-output and you'll capture what anyone downstack sends there.
- Jtsummers 6y agoOr rebind standard-input and feed an interactive program input from a file or other stream.