Re: Naming 'n' instances or repetitions

Liste des GroupesRevenir à cl forth 
Sujet : Re: Naming 'n' instances or repetitions
De : dxforth (at) *nospam* gmail.com (dxf)
Groupes : comp.lang.forth
Date : 23. May 2025, 05:14:47
Autres entêtes
Organisation : i2pn2 (i2pn.org)
Message-ID : <cb894082826b31faffc72b4933349929fc7ccc2c@i2pn2.org>
References : 1
User-Agent : Mozilla Thunderbird
On 22/05/2025 1:34 pm, dxf wrote:
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'.
...

While there was no comment/description for the above, there was one for H.0 :

  "H.0 Display u in hex in a right-justified field of n zeros."

So the '0' had nothing to do with count or instances but rather the fill character.
In that case I'll leave (H.N) NHOLD as they were.  OTOH one could have (H.#) #HOLD ...


Date Sujet#  Auteur
22 May 25 * Naming 'n' instances or repetitions9dxf
22 May 25 +* Re: Naming 'n' instances or repetitions2Anton Ertl
22 May 25 i`- Re: Naming 'n' instances or repetitions1dxf
23 May 25 +- Re: Naming 'n' instances or repetitions1dxf
23 May 25 +* Re: Naming 'n' instances or repetitions2Hans Bezemer
24 May 25 i`- Re: Naming 'n' instances or repetitions1dxf
24 May 25 `* Re: Naming 'n' instances or repetitions3Ruvim
24 May 25  +- Re: Naming 'n' instances or repetitions1albert
25 May 25  `- Re: Naming 'n' instances or repetitions1dxf

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal