Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: "Rod Pemberton" Newsgroups: comp.lang.forth Subject: Re: FORTH LITE TUTORIAL based on MPE VFX Date: Wed, 25 Jun 2014 18:38:56 -0400 Organization: Aioe.org NNTP Server Lines: 39 Message-ID: References: <2d2eba75-5d44-422a-8a3f-751702d8cea6@googlegroups.com> <5be1ebb2-75e3-433a-bb83-542f3763acb1@googlegroups.com> <45f5f8f9-e2c0-42f1-8640-8108c55d397f@googlegroups.com> <1ad192b0-6c5b-462c-8d19-cad563dbf974@googlegroups.com> <557e2d7a-6003-42af-803b-5d21a00315bd@googlegroups.com> <87ceaa31-134f-4503-8a49-e07b4061b301@googlegroups.com> <29b02601-d43c-4f76-8f3a-02bb4855a09a@googlegroups.com> <31f28699-46bc-4f5b-a1f2-565d663dfd3e@googlegroups.com> <2cb5ef69-0e06-4a07-8594-5f65b3d2a714@googlegroups.com> <4e5d1063-b6f1-4cd8-ae53-be0435e372ee@googlegroups.com> <96e20bcc-9f13-4212-9959-6fa4765b40c1@googlegroups.com> <243713a6-b8b2-4053-bb59-6249ebf6b7f5@googlegroups.com> <39b481fe-3c92-44bc-aee7-b344fa9d523d@googlegroups.com> NNTP-Posting-Host: CNsg4fVcCsvs3UaOgZtQCw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.16 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.forth:31850 On Wed, 25 Jun 2014 06:46:13 -0400, Mark Wills wrote: > On Wednesday, 25 June 2014 02:04:05 UTC+1, Rod Pemberton wrote: >> NUL-TERMINATED STRINGS >> > Bullshit. What? So that COUNT has to walk a string looking for a 0, > like C? No thanks. > How often do you use COUNT? ... It's in my dictionary only four times, on words I'm guessing are low use, except for WORD which is higher use. As Ms. Rather noted, most strings are going to be short, i.e., less than 255 characters. So, there is not much overhead counting them. Most of the time COUNT is going to be used once, then the 'c-addr u' string form will be used thereafter. In some cases, the 'c-addr u' form will be generated directly by other words. > What if I want a 0 in my string? Not all strings are displayable > ASCII you know! I'll bite. Under what circumstances would you want to emit a 0 in a string? Or, under what circumstances would you want to embed a 0 in a string? I can only think of one situation, but I don't recall ever seeing it used on IBM PC clones. > A length cell is only sensible way (note, CELL, not byte). A larger length cell would require a change to COUNT too. How is that really any different from what I proposed? Rod Pemberton