News for hackers. Stuff that matters.
Re:Starting Forth – the classic Forth language tutorial by zaf on Thursday June 20, 2013 @04:07AM (#5910835)
Ah, so you mean that certain words can not only look at the stack but also look at manipulate the input word stream.

Thanks for the explanation. I really ought to do a practical session with Forth.

Re:Starting Forth – the classic Forth language tutorial by dvdkhlng on Thursday June 20, 2013 @04:30AM (#5910898)
There are various levels of abstraction when accessing the input stream. The lowest level is by inspecting the input (line) buffer. Just realized how that allows one to write a three-word quine [1] in ANS-compliant Forth:

  SOURCE TYPE BYE
[1] https://en.wikipedia.org/wiki/Quine_%28computing%29