Sujet : Re: Average of a [stack]
De : dxforth (at) *nospam* gmail.com (dxf)
Groupes : comp.lang.forthDate : 19. Jul 2024, 02:49:26
Autres entêtes
Organisation : Ausics - https://newsgroups.ausics.net
Message-ID : <6699c626$1@news.ausics.net>
References : 1 2 3 4 5 6 7 8 9 10
User-Agent : Mozilla Thunderbird
On 19/07/2024 12:56 am, Buzz McCool wrote:
On 7/18/2024 12:24 AM, minforth wrote:
IMO it is not more than a quick hack to digest the full fp stack,
whatever it may contain or not at the given moment. ...
I understand where you (and Anton) are coming from. I was thinking that FloatStackAvg was a one-and-done word, but someone might want to use it with other words and thus have side efects.
I have a note to perform an fclearstack to clear any existing values from the floating point stack before invoking that word for the time being.
While c.l.f. challenges are often couched in terms of items on a stack,
one is more likely to be dealing with data in memory and a count.
Shifting the operation to the stack (assuming that's even viable) strikes
me as unnecessary.