Sujet : Re: Naming 'n' instances or repetitions
De : dxforth (at) *nospam* gmail.com (dxf)
Groupes : comp.lang.forthDate : 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 ...