Sujet : Re: "The Best Programming Language for the End of the World"
De : dxforth (at) *nospam* gmail.com (dxf)
Groupes : comp.lang.forthDate : 06. Apr 2025, 03:40:25
Autres entêtes
Organisation : i2pn2 (i2pn.org)
Message-ID : <03578859278120aad6dfedd8b042a21f25a9a177@i2pn2.org>
References : 1 2 3 4 5
User-Agent : Mozilla Thunderbird
On 5/04/2025 5:16 pm, Paul Rubin wrote:
dxf <dxforth@gmail.com> writes:
: FOPEN ( a n fam -- ) open-file s" open" ferr cf ! ;
I'm used to functions like this returning file handles instead of
storing into a global var, so you can have more than one file active at
the same time.
The code is from an installer app that goes back to the earliest days
of DX-Forth. I never had reason to extend its file handling.
BTW 99% of apps I write still only require one input and one output
file, in which case only two handles are needed. I have a library for
that which allows more handles to be created if need be.