Path: csiph.com!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: "Robin Vowels" Newsgroups: comp.compilers Subject: Re: counted characters in strings Date: Fri, 10 Jun 2022 12:21:00 +1000 Organization: Compilers Central Lines: 19 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <22-06-029@comp.compilers> References: <22-06-006@comp.compilers> <22-06-007@comp.compilers> <22-06-008@comp.compilers> <22-06-013@comp.compilers> <22-06-015@comp.compilers> <22-06-019@comp.compilers> <22-06-021@comp.compilers> <22-06-025@comp.compilers> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 8bit Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="88392"; mail-complaints-to="abuse@iecc.com" Keywords: lex Posted-Date: 10 Jun 2022 11:41:04 EDT X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com Xref: csiph.com comp.compilers:3063 From: "gah4" Subject: Re: counted strings > On Thursday, June 9, 2022 at 9:33:52 AM UTC-7, Hans-Peter Diettrich wrote: > > In any case, if you write your program on a coding form, with > each character in a little box, it is easy to know how many are > in each H constant. Nevertheless, counting the number of characters was a constant source of error. It was easy enough to include the letter 'H' in the character count, sp that the following character became gobbled up in the Hollerith constant, and resulting in weird error messages. When a Hollerith constant was long enough to require a continuation card, it was even easier to lose count; the continuation character in column 6 sometimes being included. And when the Hollerith constant required 133 characters, how many coud reliably count all of them?