Sujet : Re: Back & Forth - 4tH I/O and You
De : dxforth (at) *nospam* gmail.com (dxf)
Groupes : comp.lang.forthDate : 19. May 2025, 04:27:30
Autres entêtes
Organisation : i2pn2 (i2pn.org)
Message-ID : <816cd129db68afd542773749aa9ea2a0d73d1493@i2pn2.org>
References : 1 2 3 4
User-Agent : Mozilla Thunderbird
On 19/05/2025 1:21 pm, dxf wrote:
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.
Actually the latter is fixable ... but even so