🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#1018
From: James Kuyper
Date: Tue, 24 Nov 2026 04:15
28 lines
3375 bytes
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:

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

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

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++.
Technical Details
Message-ID: <11e331r$2gekc$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>

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: James Kuyper <jameskuyper@alumni.caltech.edu>
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: Mon, 23 Nov 2026 23:15:54 -0500
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <11e331r$2gekc$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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 24 Nov 2026 04:15:56 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2636428"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+sY+PW9BSj9f5+lE5pHVoIU/0mMu8EGcw="; posting-host="b1eb7514f0122cac62b6c7ba4bec7ee7"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:DDALQTyMM4wc0BTEFm+3sXFjca8= sha256:FE7bpKmpBmu3xUn3MCgajHWcdgNGpZ6pRTstA0u9ZFM=
	sha1:0jdSSBlys7mZgBXhZg4+ojx1qo8= sha256:qbRqBeDZmlCSMSkjLpXjwjv+wxUBVh7Zxi6aS+xtJLY=
Content-Language: en-US
In-Reply-To: <11e136t$f9ab$1@dont-email.me>