Sujet : Re: Back & Forth - 4tH I/O and You
De : dxforth (at) *nospam* gmail.com (dxf)
Groupes : comp.lang.forthDate : 19. May 2025, 04:21:03
Autres entêtes
Organisation : i2pn2 (i2pn.org)
Message-ID : <078ff0e4ae28526fe1c04fef6474326237ad928d@i2pn2.org>
References : 1 2 3
User-Agent : Mozilla Thunderbird
On 19/05/2025 2:49 am, Hans Bezemer wrote:
...
Second - I've consulted my script, and nowhere do I use the word "redirection". I *do* state, however: "That means I have to *reuse* as many tokens as possible."
What I mean is: why should I change my source to:
S>D <# #S ROT SIGN #> fid WRITE-FILE
When I can continue to use a perfectly capable: .
In my case that would be: (.) WRITE
where (.) is a kernel function and WRITE is a library function with
appropriate error handling:
123 (.) write invalid handle error ... aborting
Using that library I could define DISK as mentioned previously and do:
DISK 123 . CONSOLE
but as any exception msg would go to the file, redirection seems more
trouble than worth.