Deutsch   English   Français   Italiano  
<02c99c0785dce8043377d34b8ad339885e2d61d1@i2pn2.org>

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

Path: ...!eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: dxf <dxforth@gmail.com>
Newsgroups: comp.lang.forth
Subject: Naming 'n' instances or repetitions
Date: Thu, 22 May 2025 13:34:14 +1000
Organization: i2pn2 (i2pn.org)
Message-ID: <02c99c0785dce8043377d34b8ad339885e2d61d1@i2pn2.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 22 May 2025 03:34:15 -0000 (UTC)
Injection-Info: i2pn2.org;
	logging-data="1386294"; 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
Bytes: 1367
Lines: 24

I've noticed two ways of naming things 'done n times'.

In SwiftForth there is:

  (.0) (H.0)

which equate to executing '#' 'n' times.

It's not clear to me why '0' was used though '0' appears in forth naming
conventions meaning 'initialization'.

In VFX Forth (and perhaps others) there is:

  NDROP

where 'n' indicates number of executions.

In DX-Forth I have:

  NHOLD (H.N)

mainly because I couldn't think of anything else but willing to change
if there were a consensus.

Does anyone have knowledge on the matter or conventions etc.?