Deutsch   English   Français   Italiano  
<03578859278120aad6dfedd8b042a21f25a9a177@i2pn2.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: dxf <dxforth@gmail.com>
Newsgroups: comp.lang.forth
Subject: Re: "The Best Programming Language for the End of the World"
Date: Sun, 6 Apr 2025 12:40:25 +1000
Organization: i2pn2 (i2pn.org)
Message-ID: <03578859278120aad6dfedd8b042a21f25a9a177@i2pn2.org>
References: <87bjtn2hct.fsf@gmail.com>
 <nnd$4e8dcfed$6eb3f489@d30798298ac0a139>
 <nnd$654242bd$3596f9c9@84688dbe60c4ab0e>
 <cf9dc70297223ad4a39ba1a4ba2c072c8737e306@i2pn2.org>
 <87v7rjb0ap.fsf@nightsong.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 6 Apr 2025 02:40:23 -0000 (UTC)
Injection-Info: i2pn2.org;
	logging-data="3312004"; mail-complaints-to="usenet@i2pn2.org";
	posting-account="XPw7UV90Iy7EOhY4YuUXhpdoEf5Vz7K+BsxA/Cx8bVc";
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
X-Spam-Checker-Version: SpamAssassin 4.0.0
In-Reply-To: <87v7rjb0ap.fsf@nightsong.com>
Bytes: 1710
Lines: 14

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.