🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.forth
Article #272

Re: Braindamaged strings

#272
From: albert
Date: Tue, 01 Dec 2026 12:15
39 lines
2215 bytes
In article <6b0e8ac5$1@news.ausics.net>, dxf  <dxforth@gmail.com> wrote:
>On 30/11/2026 10:21 pm, albert@spenarnc.xs4all.nl wrote:
>> In this day and age it is time to terminate the use of characters
>> to store a string count.
>>
>> With great pleasure I see that Gforth has adopted the use of a cell
>> to store the count of a string, officially.
>> $@ replaces COUNT. For places where COUNT is indeed use to fetch
>> a string I propose to ALIAS COUNT as `` $@-BD '' .
>> $! has no equivalent in brain damaged strings that is widely adopted.
>> Certainly the pair $@ $! makes a lot of sense. Finally you could stop
>> pondering of a PLACE-SOMESUCH words has anything to do with strings, and
>> what the stack effect could be.
>>
>> "Happy Christmas" PAD $!
>> PAD $@ TYPE
>>
>> Happy Christmas OK
>
>Someone should tell SwiftForth and VFX (2500+ instances of COUNT) :)

Never mind the internal uses of COUNT. They can stay.

In library code every time you use COUNT, you have placed somethin there
with a non standard word. Replace these instances with $!-BD .
This is a great improvement.
One you're done replace COUNT by $@ and $!-BD by $!.

Now you're not bitten with url's that run more than 256 bytes.

Groetjes Albert.



>
-- 
The Chinese government is satisfied with its military superiority over USA.
The next 5 year plan has as primary goal to advance life expectancy
over 80 years, like Western Europe.
Technical Details
Message-ID: <nnd$4f055a11$14fd38b3@3d3173008d244ed3>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!abo004.abavia.com!feed.abavia.com!abr005.abavia.com!abp002.abavia.com!reseller!not-for-mail
References: <nnd$2790af4d$71f56696@06eb3ea8c34cc53c> <6b0e8ac5$1@news.ausics.net>

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.forth
References: <nnd$2790af4d$71f56696@06eb3ea8c34cc53c> <6b0e8ac5$1@news.ausics.net>
From: albert@spenarnc.xs4all.nl
Subject: Re: Braindamaged strings
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$4f055a11$14fd38b3@3d3173008d244ed3>
Organization: www.abavia.com
Date: Tue, 01 Dec 2026 13:15:06 +0100
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!abo004.abavia.com!feed.abavia.com!abr005.abavia.com!abp002.abavia.com!reseller!not-for-mail
Lines: 40
Injection-Date: Tue, 01 Dec 2026 13:15:06 +0100
Injection-Info: reseller; mail-complaints-to="abuse@abavia.com"