🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.forth
Article #273

Re: Braindamaged strings

#273
From: dxf
Date: Wed, 02 Dec 2026 02:39
38 lines
2589 bytes
On 1/12/2026 11:15 pm, albert@spenarnc.xs4all.nl wrote:
> 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.

Who has been bitten - particularly in forth which encourages programmers
to be mindful in all they do?  You mentioned Gforth.  Gforth has described
itself as an 'educational forth'.  It certainly seems aimed at beginners
as it has 'features' that drove me crazy.  If that audience gets bitten,
I say well and good.  If they're anything like what forth needs, they'll
blame themselves and not the language.
Technical Details
Message-ID: <6b0f84ca$1@news.ausics.net>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!feed-us-ny.newsdeef.eu!weretis.net!feeder9.news.weretis.net!news.bbs.nz!news.ausics.net!not-for-mail
References: <nnd$2790af4d$71f56696@06eb3ea8c34cc53c> <6b0e8ac5$1@news.ausics.net> <nnd$4f055a11$14fd38b3@3d3173008d244ed3>

Show Full Headers
Complete Article Headers
Date: Wed, 2 Dec 2026 13:39:06 +1100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Braindamaged strings
Newsgroups: comp.lang.forth
References: <nnd$2790af4d$71f56696@06eb3ea8c34cc53c>
 <6b0e8ac5$1@news.ausics.net> <nnd$4f055a11$14fd38b3@3d3173008d244ed3>
Content-Language: en-GB
From: dxf <dxforth@gmail.com>
In-Reply-To: <nnd$4f055a11$14fd38b3@3d3173008d244ed3>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: news.ausics.net
Message-ID: <6b0f84ca$1@news.ausics.net>
Organization: Ausics - https://newsgroups.ausics.net
Lines: 38
X-Complaints: abuse@ausics.net
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!feed-us-ny.newsdeef.eu!weretis.net!feeder9.news.weretis.net!news.bbs.nz!news.ausics.net!not-for-mail