🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c++
Article #1020

Re: Yet another digression (was Re: [meta] O tempora, o mores! (was Re: does an expression in a logical statement need parenthes...

#1020
From: Janis Papanagnou
Date: Tue, 24 Nov 2026 06:40
60 lines
4722 bytes
On 2026-11-24 05:15, James Kuyper wrote:
> On 2026-11-23 05:06, Janis Papanagnou wrote:
>> On 2026-11-22 18:04, Ross Finlayson wrote:
>>>
>>> [...] Then,
>>> for example there's "blank line at the end of a file or no blank line",
>>
>> (Note that your wording is expressing a shifted perspective.)
>>
>>> for example Java-style has "no trailing line", here it's that
>>> the files always have a trailing empty line, then that for
>>> accounts like "cat all the files" that they're not ellided.
>>
>> I've never heard about "blank line at the end of a file".
> 
> I no longer see Ross's messages directly, only what's quoted in other
> people's responses.
> 
> Could he be referring to what the C standard says about text streams:

As what he writes appears often a bit convoluted it's not clear to
me whether he was implicitly referring to the C-standard. There
was no explicit reference to the C-standard (as far as I recall).

Given the wording and context as presented (Tabs vs. Spaces, long
lines, and meta-rambling etc.) it appeared more to be a statement
about editors; data representation, files, the editors' GUIs. All
somehow mixed in one (arguable; at least imprecise) statement. If
we know (and spell out) these differences readers may get aware of
the potential problems and act accordingly (which was my point).

> 
> "Whether the last line requires a terminating new-line character is
> implementation-defined." (7.24.2p2 n3998.pdf)

Working in POSIX environments, though, we have the certainty and we
need not rely on the (yet another) uncertainty that the C-standard
exposes here.

(Personally I'm not much concerned as I'm always creating terminated
lines in text-files. I'm also using an editor where the editor cares
about detecting and creating correct representations in files, and
which facilitates me to control that in (very rare) cases where I'd
need it.)

> 
> I wouldn't describe that as "blank line or no blank line", but I could
> imagine it being misunderstood that way.

Given the representations of his thoughts it's easy to misunderstand
his intention. Any answers will have to consider the thereby induced
uncertainty.

> 
> The C++ standard defines the behavior of many fundamental <iostream>
> functions in terms of the C standard library's routines, so I suspect
> that this also applies to C++.

Janis
Technical Details
Message-ID: <11e3bhk$2a7k9$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11cj4a0$23796$1@dont-email.me> <11dg2uf$3vgth$1@kst.eternal-september.org> <-OqdnSRYr8ZbiGH3nZ2dnZfqn_GdnZ2d@giganews.com> <11diid8$q4aj$2@kst.eternal-september.org> <jzadncOUl7VebWH3nZ2dnZfqn_WdnZ2d@giganews.com> <11djku9$14q9v$1@dont-email.me> <11djohu$s03n$5@dont-email.me> <11djsoh$17he7$1@dont-email.me> <JzOdnc2k5ZGeHmD3nZ2dnZfqn_qdnZ2d@giganews.com> <11dl9ou$1p00u$1@kst.eternal-september.org> <11dm94c$21u9i$1@dont-email.me> <11dmbq9$s03n$7@dont-email.me> <11dmhg2$24tb6$1@dont-email.me> <11dmib8$s03n$9@dont-email.me> <11dmqbl$289i4$1@dont-email.me> <11dmu0s$s03n$10@dont-email.me> <11dmuv3$2a3c0$1@dont-email.me> <11dnr4c$2lhv9$1@kst.eternal-september.org> <11doth7$2vhee$1@dont-email.me> <11dqpqg$3masv$2@dont-email.me> <11drvdj$12fg$1@dont-email.me> <11dt66g$fjb5$2@dont-email.me> <11dui6a$scjp$1@dont-email.me> <SpOcnXL7lP_FgJ72nZ2dnZfqn_idnZ2d@giganews.com> <RdadnUbexs0JvZ72nZ2dnZfqnPednZ2d@giganews.com> <11e136t$f9ab$1@dont-email.me> <11e331r$2gekc$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com>
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: Yet another digression (was Re: [meta] O tempora, o mores! (was
 Re: does an expression in a logical statement need parenthesis for proper
 evaluation?))
Date: Tue, 24 Nov 2026 07:40:52 +0100
Organization: A noiseless patient Spider
Lines: 60
Message-ID: <11e3bhk$2a7k9$1@dont-email.me>
References: <11cj4a0$23796$1@dont-email.me>
 <11dg2uf$3vgth$1@kst.eternal-september.org>
 <-OqdnSRYr8ZbiGH3nZ2dnZfqn_GdnZ2d@giganews.com>
 <11diid8$q4aj$2@kst.eternal-september.org>
 <jzadncOUl7VebWH3nZ2dnZfqn_WdnZ2d@giganews.com>
 <11djku9$14q9v$1@dont-email.me> <11djohu$s03n$5@dont-email.me>
 <11djsoh$17he7$1@dont-email.me>
 <JzOdnc2k5ZGeHmD3nZ2dnZfqn_qdnZ2d@giganews.com>
 <11dl9ou$1p00u$1@kst.eternal-september.org> <11dm94c$21u9i$1@dont-email.me>
 <11dmbq9$s03n$7@dont-email.me> <11dmhg2$24tb6$1@dont-email.me>
 <11dmib8$s03n$9@dont-email.me> <11dmqbl$289i4$1@dont-email.me>
 <11dmu0s$s03n$10@dont-email.me> <11dmuv3$2a3c0$1@dont-email.me>
 <11dnr4c$2lhv9$1@kst.eternal-september.org> <11doth7$2vhee$1@dont-email.me>
 <11dqpqg$3masv$2@dont-email.me> <11drvdj$12fg$1@dont-email.me>
 <11dt66g$fjb5$2@dont-email.me> <11dui6a$scjp$1@dont-email.me>
 <SpOcnXL7lP_FgJ72nZ2dnZfqn_idnZ2d@giganews.com>
 <RdadnUbexs0JvZ72nZ2dnZfqnPednZ2d@giganews.com>
 <11e136t$f9ab$1@dont-email.me> <11e331r$2gekc$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 24 Nov 2026 06:40:53 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2432649"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/oJxkkWk1Wnk5ge4xXJ4x9"; posting-host="19319517aac92cebc7d88dc8cb8453cb"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:yv98lMCWd34nKIYJXI+ENEfxU6c= sha256:IjHecgxUt7WScOMLnAXjMHQvrwO3beTFPl51kDgeFfg=
	sha1:xFXJgEC2Q/mU0Fbip3MAppN+r2g= sha256:hr6Y8bATyzQaW4yim6n+0GOfY2zmSO/w2jb3Yeg8MHg=
In-Reply-To: <11e331r$2gekc$1@dont-email.me>
Content-Language: en-US