Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

The value of a program is proportional to the weight of its output.


devel / comp.lang.c++ / Unglaublich, dass das funktioniert:

SubjectAuthor
* Unglaublich, dass das funktioniert:Bonita Montero
+- Re: Unglaublich, dass das funktioniert:Bo Persson
+- Re: Unglaublich, dass das funktioniert:Pavel
+* Re: Unglaublich, dass das funktioniert:James Kuyper
|`* Re: Unglaublich, dass das funktioniert:Bonita Montero
| +* Re: Unglaublich, dass das funktioniert:Kaz Kylheku
| |+- Re: Unglaublich, dass das funktioniert:immibis
| |`* Re: Unglaublich, dass das funktioniert:Bonita Montero
| | +- Re: Unglaublich, dass das funktioniert:Kaz Kylheku
| | `- Re: Unglaublich, dass das funktioniert:James Kuyper
| `* Re: Unglaublich, dass das funktioniert:James Kuyper
|  +* Re: Unglaublich, dass das funktioniert:Bonita Montero
|  |`* Re: Unglaublich, dass das funktioniert:David Brown
|  | `* Re: Unglaublich, dass das funktioniert:Bonita Montero
|  |  `- Re: Unglaublich, dass das funktioniert:David Brown
|  `* Re: Unglaublich, dass das funktioniert:James Kuyper
|   +* Re: Unglaublich, dass das funktioniert:Bonita Montero
|   |`* Re: Unglaublich, dass das funktioniert:David Brown
|   | +- Re: Unglaublich, dass das funktioniert:Bonita Montero
|   | `* Re: Unglaublich, dass das funktioniert:Kaz Kylheku
|   |  `- Re: Unglaublich, dass das funktioniert:Bonita Montero
|   `* Re: Unglaublich, dass das funktioniert:James Kuyper
|    `- Re: Unglaublich, dass das funktioniert:Bonita Montero
`* Re: Unglaublich, dass das funktioniert:Andrey Tarasevich
 +* Re: Unglaublich, dass das funktioniert:Ralf Goertz
 |`* Re: Unglaublich, dass das funktioniert:Andrey Tarasevich
 | `* Re: Unglaublich, dass das funktioniert:Ralf Goertz
 |  +* Re: Unglaublich, dass das funktioniert:Andreas Kempe
 |  |`* Re: Unglaublich, dass das funktioniert:Andreas Kempe
 |  | `* Re: Unglaublich, dass das funktioniert:Andrey Tarasevich
 |  |  `- Re: Unglaublich, dass das funktioniert:Andreas Kempe
 |  `* Re: Unglaublich, dass das funktioniert:Andrey Tarasevich
 |   `* Re: Unglaublich, dass das funktioniert:Ben Bacarisse
 |    `* Re: Unglaublich, dass das funktioniert:Pavel
 |     +- Re: Unglaublich, dass das funktioniert:Ben Bacarisse
 |     `- Re: Unglaublich, dass das funktioniert:Tim Rentsch
 `- Re: Unglaublich, dass das funktioniert:Kaz Kylheku

Pages:12
Unglaublich, dass das funktioniert:

<ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2900&group=comp.lang.c%2B%2B#2900

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!news.swapon.de!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Unglaublich, dass das funktioniert:
Date: Sun, 17 Dec 2023 14:27:56 +0100
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 17 Dec 2023 13:27:52 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="abf40c45a5a9602d062f61eb759c9b7c";
logging-data="3108242"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ys0dDNLsrWpc5LYajj69wGKaz75S9wmQ="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:1FQH5kzeC0Nopa+gWb5p5itLXXI=
Content-Language: de-DE
 by: Bonita Montero - Sun, 17 Dec 2023 13:27 UTC

int main( int argc, char ** )
{ switch( argc )
{
for( ; ; )
{
case 1:;
}
}
}

Hab ich gerade in einem alten C-Programm von 1999 gesehen, dass
das jemand gemacht hat. Für manche mag das schlecht wirken weil
es unüblich ist.

Re: Unglaublich, dass das funktioniert:

<ku8oejF5g3mU1@mid.individual.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2901&group=comp.lang.c%2B%2B#2901

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bo...@bo-persson.se (Bo Persson)
Newsgroups: comp.lang.c++
Subject: Re: Unglaublich, dass das funktioniert:
Date: Sun, 17 Dec 2023 18:11:47 +0100
Lines: 26
Message-ID: <ku8oejF5g3mU1@mid.individual.net>
References: <ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net z5OyHGWWP2GugPbNQTU++QaRoJJVoKY+B3bAcTRb2RtDwUnE7+
Cancel-Lock: sha1:lKw7hR14vdWymR7LpCYO98hLMZc= sha256:nYo3uH+iys1wsHvhifEms7HUBl4x23K00/k3ZNHBy7g=
User-Agent: Mozilla Thunderbird
Content-Language: sv
In-Reply-To: <ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>
 by: Bo Persson - Sun, 17 Dec 2023 17:11 UTC

On 2023-12-17 at 14:27, Bonita Montero wrote:
> int main( int argc, char ** )
> {
>     switch( argc )
>     {
>         for( ; ; )
>         {
>         case 1:;
>         }
>     }
> }
>
> Hab ich gerade in einem alten C-Programm von 1999 gesehen, dass
> das jemand gemacht hat. Für manche mag das schlecht wirken weil
> es unüblich ist.

It is similar to Duff's device from the 1980's

https://en.wikipedia.org/wiki/Duff%27s_device

A case label must be inside a switch, but it doesn't have to be
*directly* inside.

Re: Unglaublich, dass das funktioniert:

<eUHfN.47610$yEgf.43569@fx09.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2902&group=comp.lang.c%2B%2B#2902

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx09.iad.POSTED!not-for-mail
Subject: Re: Unglaublich, dass das funktioniert:
Newsgroups: comp.lang.c++
References: <ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>
From: pauldont...@removeyourself.dontspam.yahoo (Pavel)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Firefox/91.0 SeaMonkey/2.53.18
MIME-Version: 1.0
In-Reply-To: <ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 16
Message-ID: <eUHfN.47610$yEgf.43569@fx09.iad>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Sun, 17 Dec 2023 19:22:50 UTC
Date: Sun, 17 Dec 2023 14:22:42 -0500
X-Received-Bytes: 1273
 by: Pavel - Sun, 17 Dec 2023 19:22 UTC

Bonita Montero wrote:
> int main( int argc, char ** )
> {
>     switch( argc )
>     {
>         for( ; ; )
>         {
>         case 1:;
>         }
>     }
> }
>
> Hab ich gerade in einem alten C-Programm von 1999 gesehen, dass
> das jemand gemacht hat. Für manche mag das schlecht wirken weil
> es unüblich ist.
Det er dårlig fordi det er uvanlig.Det er dårlig fordi det er uvanlig.

Re: Unglaublich, dass das funktioniert:

<ulojnm$3bp7o$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2903&group=comp.lang.c%2B%2B#2903

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jameskuy...@alumni.caltech.edu (James Kuyper)
Newsgroups: comp.lang.c++
Subject: Re: Unglaublich, dass das funktioniert:
Date: Mon, 18 Dec 2023 00:01:42 -0500
Organization: A noiseless patient Spider
Lines: 51
Message-ID: <ulojnm$3bp7o$1@dont-email.me>
References: <ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 18 Dec 2023 05:01:42 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="5b235cd43ffeff24f3774315b1380f3d";
logging-data="3532024"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/rjKYx+E8cxMqRb9/zQcXQnsnwJKOXwQU="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:dydYSqCAZHvxZ20BoYQdAw0qjEM=
Content-Language: en-US
In-Reply-To: <ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>
 by: James Kuyper - Mon, 18 Dec 2023 05:01 UTC

On 2023-12-17 at 14:27, Bonita Montero wrote:
> int main( int argc, char ** )
> {
>     switch( argc )
>     {
>         for( ; ; )
>         {
>         case 1:;
>         }
>     }
> }

Why do you consider it "Unbelievable that that works"? Of course, you
first have to specify what you mean by "works". If argc is zero (which
is permitted), the program does nothing and exits immediately with a
successful exit status. If argc is non-zero, it enters an infinite loop
that does nothing - an implementation is permitted to implement such a
loop as if it did in fact terminate with a successful exit status.
Either way, nothing observable happens other than the exit status, which
means that an implementation is free to implement this as the equivalent
of "int main(void) {}".
Is that what's intended? If so, it does works.
Is it the unconventional location of the case label that you don't
understand? That location is permitted, and has well-defined
behavior.understand? That location is permitted, and has well-defined
behavior.

translate.google.com (apologies for any mistranslation - my own German
is not any better than Google's):

Warum halten Sie es als "unglaublich, dass das funktioniert"? Natürlich
müssen Sie zuerst angeben, was Sie mit "Werken" meinen. Wenn argc Null
ist (was zulässig ist), tut das Programm nichts und verlässt sofort
einen erfolgreichen Ausstiegsstatus. Wenn argc ungleich Null ist, tritt
eine unendliche Schleife ein, die nichts tut - eine Implementierung darf
eine solche Schleife implementieren, als ob sie tatsächlich einen
erfolgreichen Ausstiegsstatus beendet hätte. In beiden Fällen passiert
nichts anderes als den Exit -Status, was bedeutet, dass eine
Implementierung frei ist, dies als das Äquivalent von "int main (void)
{}" zu implementieren.
Ist es das, was beabsichtigt ist? Wenn ja, funktioniert es.
Ist es der unkonventionelle Ort des Falletiketts, den Sie nicht
verstehen? Dieser Ort ist erlaubt und hat ein gut definiertes Verhalten.

One aspect of the translation that I did fiddle with: Google translated
"Unglaublich, dass das funktioniert" as "Unbelievable that this works",
but during the reverse translation it used "dies" rather than "das". If
I used "Unbelievable that that works", it reproduced the original
Subject line.
As a native English speaker, "that this works" feels more appropriate to
me. Is "das" more appropriate than "dies" in German?

Re: Unglaublich, dass das funktioniert:

<ulpvt1$3jqmt$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2904&group=comp.lang.c%2B%2B#2904

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Unglaublich, dass das funktioniert:
Date: Mon, 18 Dec 2023 18:35:33 +0100
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <ulpvt1$3jqmt$1@raubtier-asyl.eternal-september.org>
References: <ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>
<ulojnm$3bp7o$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 18 Dec 2023 17:35:30 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="c4379143b9544b290ff7797460323fb0";
logging-data="3795677"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18t0MBbRd05H35roi08JOLpfLodG4fYwFw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:O9sdtrn5jhf1w6/HhZE272fHMGc=
Content-Language: de-DE
In-Reply-To: <ulojnm$3bp7o$1@dont-email.me>
 by: Bonita Montero - Mon, 18 Dec 2023 17:35 UTC

Am 18.12.2023 um 06:01 schrieb James Kuyper:

> Why do you consider it "Unbelievable that that works"? Of course, you
> first have to specify what you mean by "works". If argc is zero (which
> is permitted), the program does nothing and exits immediately with a
> successful exit status. If argc is non-zero, it enters an infinite loop
> that does nothing - an implementation is permitted to implement such a
> loop as if it did in fact terminate with a successful exit status.
> Either way, nothing observable happens other than the exit status, which
> means that an implementation is free to implement this as the equivalent
> of "int main(void) {}".

I didn't mean that the code does sth. which makes sense but that the
code has a case inside a for inside a switch. Others understood that
better than you.

Re: Unglaublich, dass das funktioniert:

<20231218183409.859@kylheku.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2905&group=comp.lang.c%2B%2B#2905

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 433-929-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c++
Subject: Re: Unglaublich, dass das funktioniert:
Date: Tue, 19 Dec 2023 02:37:59 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <20231218183409.859@kylheku.com>
References: <ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>
<ulojnm$3bp7o$1@dont-email.me>
<ulpvt1$3jqmt$1@raubtier-asyl.eternal-september.org>
Injection-Date: Tue, 19 Dec 2023 02:37:59 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="68da8d647119cc56964fc1502348dad9";
logging-data="3962619"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+/lvJWcqK/2vHku+hswxRrqhQxh23hWHk="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:B7sMLHINO2uj/fbb65RZj0Oi+3E=
 by: Kaz Kylheku - Tue, 19 Dec 2023 02:37 UTC

On 2023-12-18, Bonita Montero <Bonita.Montero@gmail.com> wrote:
> Am 18.12.2023 um 06:01 schrieb James Kuyper:
>
>> Why do you consider it "Unbelievable that that works"? Of course, you
>> first have to specify what you mean by "works". If argc is zero (which
>> is permitted), the program does nothing and exits immediately with a
>> successful exit status. If argc is non-zero, it enters an infinite loop
>> that does nothing - an implementation is permitted to implement such a
>> loop as if it did in fact terminate with a successful exit status.
>> Either way, nothing observable happens other than the exit status, which
>> means that an implementation is free to implement this as the equivalent
>> of "int main(void) {}".
>
> I didn't mean that the code does sth. which makes sense but that the
> code has a case inside a for inside a switch. Others understood that
> better than you.

A case/default statement belongs to the closest enclosing switch, no
matter in how many other statements it is enclosed.

This has its uses, such as:

switch (state) {
case FOO:
// FOO-only prologue code here, skipped by BAR case.

if (false) {
case BAR:
// BAR-specific prologue code, skipped by FOO case.
}
// fallthrough
case XYZZY:
// code common to FOO, BAR, XYZZY
...
}

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca
NOTE: If you use Google Groups, I don't see you, unless you're whitelisted.

Re: Unglaublich, dass das funktioniert:

<ulrf9j$3uhvh$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2908&group=comp.lang.c%2B%2B#2908

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!newsfeed.endofthelinebbs.com!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jameskuy...@alumni.caltech.edu (James Kuyper)
Newsgroups: comp.lang.c++
Subject: Re: Unglaublich, dass das funktioniert:
Date: Tue, 19 Dec 2023 02:04:19 -0500
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <ulrf9j$3uhvh$1@dont-email.me>
References: <ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>
<ulojnm$3bp7o$1@dont-email.me>
<ulpvt1$3jqmt$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 19 Dec 2023 07:04:20 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0cb682b7012ce843d82695ca9b4d8717";
logging-data="4147185"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1839q5H5qmmsob5A14/xS+8VSOqEiBVTcg="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:fXPXTfcM0RHE+8rWhfH+VPgduMQ=
Content-Language: en-US
In-Reply-To: <ulpvt1$3jqmt$1@raubtier-asyl.eternal-september.org>
 by: James Kuyper - Tue, 19 Dec 2023 07:04 UTC

On 2023-12-18, Bonita Montero <Bonita.Montero@gmail.com> wrote:
> Am 18.12.2023 um 06:01 schrieb James Kuyper:
>
>> Why do you consider it "Unbelievable that that works"? Of course, you
>> first have to specify what you mean by "works". If argc is zero (which
>> is permitted), the program does nothing and exits immediately with a
>> successful exit status. If argc is non-zero, it enters an infinite loop
>> that does nothing - an implementation is permitted to implement such a
>> loop as if it did in fact terminate with a successful exit status.
>> Either way, nothing observable happens other than the exit status, which
>> means that an implementation is free to implement this as the equivalent
>> of "int main(void) {}".
>
> I didn't mean that the code does sth. which makes sense but that the
> code has a case inside a for inside a switch. Others understood that
> better than you.

No, I understood that. I was merely pointing out your poor choice of
words. "funktionert" is the past participle of "funktionen", for which
the German language version of Wiktionary provides the definition
"vorschriftsmäßig arbeiten", which translates as "work in accordance
with". That makes it a good match for the 16th definition provided by
Wiktionary for the English word "work" as a verb: "To function
correctly; to act as intended; to achieve the goal designed for."

I gather that you weren't surprised by the fact that it worked in
accordance with the relevant requirements, which is what your chosen
Subject: header implies. You were actually surprised by the fact that
there was any required behavior defined for such code by the standard. I
would guess that's because you were unaware of the fact that a case
label can be placed anywhere within the body of a switch statement that
an ordinary label can be placed.

Re: Unglaublich, dass das funktioniert:

<uls6gb$27po$4@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2910&group=comp.lang.c%2B%2B#2910

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: new...@immibis.com (immibis)
Newsgroups: comp.lang.c++
Subject: Re: Unglaublich, dass das funktioniert:
Date: Tue, 19 Dec 2023 14:40:27 +0100
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <uls6gb$27po$4@dont-email.me>
References: <ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>
<ulojnm$3bp7o$1@dont-email.me>
<ulpvt1$3jqmt$1@raubtier-asyl.eternal-september.org>
<20231218183409.859@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 19 Dec 2023 13:40:27 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c95b9f06949c68a7be13f701a542acec";
logging-data="73528"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19mKb3myRkBLmZ48dYaunLQ"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:H6RIjgHhZLAmO0e4JqlQ/Io85QI=
In-Reply-To: <20231218183409.859@kylheku.com>
Content-Language: en-US
 by: immibis - Tue, 19 Dec 2023 13:40 UTC

On 12/19/23 03:37, Kaz Kylheku wrote:
> This has its uses, such as:
>
> switch (state) {
> case FOO:
> // FOO-only prologue code here, skipped by BAR case.
>
> if (false) {
> case BAR:
> // BAR-specific prologue code, skipped by FOO case.
> }
> // fallthrough
> case XYZZY:
> // code common to FOO, BAR, XYZZY
> ...
> }
>

Note: this case is better served by a goto, or a function call, or just
writing if(state==FOO) {/*FOO code*/} else if(state==BAR) {/*BAR code*/}
......

Some people are allergic to goto and find this switch syntax to be
preferable. They're idiots.

Re: Unglaublich, dass das funktioniert:

<uls6tc$2bb0$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2911&group=comp.lang.c%2B%2B#2911

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Unglaublich, dass das funktioniert:
Date: Tue, 19 Dec 2023 14:47:29 +0100
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <uls6tc$2bb0$1@raubtier-asyl.eternal-september.org>
References: <ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>
<ulojnm$3bp7o$1@dont-email.me>
<ulpvt1$3jqmt$1@raubtier-asyl.eternal-september.org>
<20231218183409.859@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 19 Dec 2023 13:47:24 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="9762aa3c6ab84daf0d9b5ca34ec3c52a";
logging-data="77152"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19WUyDIpkCVbvp4BnPQB5O2KS/ro7beIxk="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:NanqEkXcBCuxnMA4yLOmoeBNUdQ=
In-Reply-To: <20231218183409.859@kylheku.com>
Content-Language: de-DE
 by: Bonita Montero - Tue, 19 Dec 2023 13:47 UTC

Am 19.12.2023 um 03:37 schrieb Kaz Kylheku:
> On 2023-12-18, Bonita Montero <Bonita.Montero@gmail.com> wrote:
>> Am 18.12.2023 um 06:01 schrieb James Kuyper:
>>
>>> Why do you consider it "Unbelievable that that works"? Of course, you
>>> first have to specify what you mean by "works". If argc is zero (which
>>> is permitted), the program does nothing and exits immediately with a
>>> successful exit status. If argc is non-zero, it enters an infinite loop
>>> that does nothing - an implementation is permitted to implement such a
>>> loop as if it did in fact terminate with a successful exit status.
>>> Either way, nothing observable happens other than the exit status, which
>>> means that an implementation is free to implement this as the equivalent
>>> of "int main(void) {}".
>>
>> I didn't mean that the code does sth. which makes sense but that the
>> code has a case inside a for inside a switch. Others understood that
>> better than you.
>
> A case/default statement belongs to the closest enclosing switch, no
> matter in how many other statements it is enclosed.
> ...

Do you think it occurred to me with the code I saw that it was also
legal code?

Re: Unglaublich, dass das funktioniert:

<uls6vb$2bb0$2@raubtier-asyl.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2912&group=comp.lang.c%2B%2B#2912

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Unglaublich, dass das funktioniert:
Date: Tue, 19 Dec 2023 14:48:32 +0100
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <uls6vb$2bb0$2@raubtier-asyl.eternal-september.org>
References: <ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>
<ulojnm$3bp7o$1@dont-email.me>
<ulpvt1$3jqmt$1@raubtier-asyl.eternal-september.org>
<ulrf9j$3uhvh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 19 Dec 2023 13:48:27 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="9762aa3c6ab84daf0d9b5ca34ec3c52a";
logging-data="77152"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18P1v143W04C9mcAZn1kVDXKR/ju/Zv274="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:RMu0HCCIT0gUq+oRyilIqR8d52Y=
In-Reply-To: <ulrf9j$3uhvh$1@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Tue, 19 Dec 2023 13:48 UTC

Am 19.12.2023 um 08:04 schrieb James Kuyper:

> No, I understood that. I was merely pointing out your poor choice of
> words. "funktionert" is the past participle of "funktionen", for which
> the German language version of Wiktionary provides the definition
> "vorschriftsmäßig arbeiten", ...

Idiot.
The wording was correct in German and you're not German.

Re: Unglaublich, dass das funktioniert:

<ulshuv$3pbn$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2913&group=comp.lang.c%2B%2B#2913

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jameskuy...@alumni.caltech.edu (James Kuyper)
Newsgroups: comp.lang.c++
Subject: Re: Unglaublich, dass das funktioniert:
Date: Tue, 19 Dec 2023 11:55:59 -0500
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <ulshuv$3pbn$1@dont-email.me>
References: <ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>
<ulojnm$3bp7o$1@dont-email.me>
<ulpvt1$3jqmt$1@raubtier-asyl.eternal-september.org>
<ulrf9j$3uhvh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 19 Dec 2023 16:55:59 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0cb682b7012ce843d82695ca9b4d8717";
logging-data="124279"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+MwoHEJIo1ayYxgjwjzymm5cWRAmWtB5A="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:PH0OgaWp3tRfYqD8m8Uzy+w7e2k=
Content-Language: en-US
In-Reply-To: <ulrf9j$3uhvh$1@dont-email.me>
 by: James Kuyper - Tue, 19 Dec 2023 16:55 UTC

On 12/19/23 08:48, Bonita Moreno wrote:
> Am 19.12.2023 um 08:04 schrieb James Kuyper:
>
>> No, I understood that. I was merely pointing out your poor choice of
>> words. "funktionert" is the past participle of "funktionen", for which
>> the German language version of Wiktionary provides the definition
>> "vorschriftsmäßig arbeiten", ...
>
> Idiot.
> The wording was correct in German and you're not German.

Actually, I am 1/4 German. More relevantly, I studied German in school
for a couple of years a few decades ago. I claim no great amount of
fluency - I rely on translate.google.com, though I feel competent to
review it's translations. I would ordinarily very happily defer to the
expertise of a native speaker of German, or even a non-native speaker
who's had more years of study than I have, or more recently. However,
you are so routinely wrong about so many things that I would not trust
you to use German correctly even if you are a native speaker.

However, if you can cite a respectable online dictionary's definition
that supports your use of "functionert" to mean something like "can be
compiled" or "is syntactically correct", please do so.

Re: Unglaublich, dass das funktioniert:

<ulsieu$4h2c$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2914&group=comp.lang.c%2B%2B#2914

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Unglaublich, dass das funktioniert:
Date: Tue, 19 Dec 2023 18:04:30 +0100
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <ulsieu$4h2c$1@raubtier-asyl.eternal-september.org>
References: <ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>
<ulojnm$3bp7o$1@dont-email.me>
<ulpvt1$3jqmt$1@raubtier-asyl.eternal-september.org>
<ulrf9j$3uhvh$1@dont-email.me> <ulshuv$3pbn$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 19 Dec 2023 17:04:30 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="9762aa3c6ab84daf0d9b5ca34ec3c52a";
logging-data="148556"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/fCH8zWPhemSLafh/tYpNzUWaTFKtUJ1c="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Zb1pfmOR6NQh7lMwove6gNaoLX8=
In-Reply-To: <ulshuv$3pbn$1@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Tue, 19 Dec 2023 17:04 UTC

Am 19.12.2023 um 17:55 schrieb James Kuyper:

> Actually, I am 1/4 German. More relevantly, I studied German in school
> for a couple of years a few decades ago. I claim no great amount of
> fluency - I rely on translate.google.com, though I feel competent to
> review it's translations. I would ordinarily very happily defer to the
> expertise of a native speaker of German, or even a non-native speaker
> who's had more years of study than I have, or more recently. However,
> you are so routinely wrong about so many things that I would not trust
> you to use German correctly even if you are a native speaker.
>
> However, if you can cite a respectable online dictionary's definition
> that supports your use of "functionert" to mean something like "can be
> compiled" or "is syntactically correct", please do so.

When you say that sth. "funktioniert" it just means that it works.
It's unbelievable that you deny that compared to a native speaker.

Re: Unglaublich, dass das funktioniert:

<20231219092510.171@kylheku.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2915&group=comp.lang.c%2B%2B#2915

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 433-929-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c++
Subject: Re: Unglaublich, dass das funktioniert:
Date: Tue, 19 Dec 2023 17:27:52 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <20231219092510.171@kylheku.com>
References: <ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>
<ulojnm$3bp7o$1@dont-email.me>
<ulpvt1$3jqmt$1@raubtier-asyl.eternal-september.org>
<20231218183409.859@kylheku.com>
<uls6tc$2bb0$1@raubtier-asyl.eternal-september.org>
Injection-Date: Tue, 19 Dec 2023 17:27:52 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="68da8d647119cc56964fc1502348dad9";
logging-data="155837"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/balOBP3ihl9JJaQ/w9rnvvcrXexV2NKo="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:hOOJun/SjItnuH6W2SJfhLEjHY0=
 by: Kaz Kylheku - Tue, 19 Dec 2023 17:27 UTC

On 2023-12-19, Bonita Montero <Bonita.Montero@gmail.com> wrote:
> Am 19.12.2023 um 03:37 schrieb Kaz Kylheku:
>> On 2023-12-18, Bonita Montero <Bonita.Montero@gmail.com> wrote:
>>> Am 18.12.2023 um 06:01 schrieb James Kuyper:
>>>
>>>> Why do you consider it "Unbelievable that that works"? Of course, you
>>>> first have to specify what you mean by "works". If argc is zero (which
>>>> is permitted), the program does nothing and exits immediately with a
>>>> successful exit status. If argc is non-zero, it enters an infinite loop
>>>> that does nothing - an implementation is permitted to implement such a
>>>> loop as if it did in fact terminate with a successful exit status.
>>>> Either way, nothing observable happens other than the exit status, which
>>>> means that an implementation is free to implement this as the equivalent
>>>> of "int main(void) {}".
>>>
>>> I didn't mean that the code does sth. which makes sense but that the
>>> code has a case inside a for inside a switch. Others understood that
>>> better than you.
>>
>> A case/default statement belongs to the closest enclosing switch, no
>> matter in how many other statements it is enclosed.
>> ...
>
> Do you think it occurred to me with the code I saw that it was also
> legal code?

The way the case/default statements are "unhinged" (to some extent) is
likely surprising to most coders when they learn about it.

Wow, you can do *what*?

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca
NOTE: If you use Google Groups, I don't see you, unless you're whitelisted.

Re: Unglaublich, dass das funktioniert:

<ulslde$4v4u$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2916&group=comp.lang.c%2B%2B#2916

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jameskuy...@alumni.caltech.edu (James Kuyper)
Newsgroups: comp.lang.c++
Subject: Re: Unglaublich, dass das funktioniert:
Date: Tue, 19 Dec 2023 12:54:54 -0500
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <ulslde$4v4u$1@dont-email.me>
References: <ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>
<ulojnm$3bp7o$1@dont-email.me>
<ulpvt1$3jqmt$1@raubtier-asyl.eternal-september.org>
<20231218183409.859@kylheku.com>
<uls6tc$2bb0$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 19 Dec 2023 17:54:55 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0cb682b7012ce843d82695ca9b4d8717";
logging-data="162974"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+dXaafHQK/jm+T9QoLd+caw+uJo9OXBCA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:mVZ0hPjAigQnlFAR2CR27uQuyJc=
Content-Language: en-US
In-Reply-To: <uls6tc$2bb0$1@raubtier-asyl.eternal-september.org>
 by: James Kuyper - Tue, 19 Dec 2023 17:54 UTC

On 2023-12-19, Bonita Montero <Bonita.Montero@gmail.com> wrote:
> Am 19.12.2023 um 03:37 schrieb Kaz Kylheku:
....
>> A case/default statement belongs to the closest enclosing switch, no
>> matter in how many other statements it is enclosed.
>> ...
>
> Do you think it occurred to me with the code I saw that it was also
> legal code?

Probably not until after you thought about it a while, otherwise why
would you say "Unglaublich" (unbelievable)? If you were sufficiently
familiar with Duff's device, it should have been completely "glaubhaft"
(believable).

Re: Unglaublich, dass das funktioniert:

<ulsno1$5eg0$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2917&group=comp.lang.c%2B%2B#2917

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!news.chmurka.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c++
Subject: Re: Unglaublich, dass das funktioniert:
Date: Tue, 19 Dec 2023 19:34:41 +0100
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <ulsno1$5eg0$1@dont-email.me>
References: <ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>
<ulojnm$3bp7o$1@dont-email.me>
<ulpvt1$3jqmt$1@raubtier-asyl.eternal-september.org>
<ulrf9j$3uhvh$1@dont-email.me>
<uls6vb$2bb0$2@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 19 Dec 2023 18:34:41 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ec959064e1c22429564702f8ab6e2e28";
logging-data="178688"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18o6hHSSivVI1VJ9jpCTWpgiXr/YG+NUL8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:PZF8hXlLWwEJKJV+Jc++bJ2CS30=
Content-Language: en-GB
In-Reply-To: <uls6vb$2bb0$2@raubtier-asyl.eternal-september.org>
 by: David Brown - Tue, 19 Dec 2023 18:34 UTC

On 19/12/2023 14:48, Bonita Montero wrote:
> Am 19.12.2023 um 08:04 schrieb James Kuyper:
>
>> No, I understood that. I was merely pointing out your poor choice of
>> words. "funktionert" is the past participle of "funktionen", for which
>> the German language version of Wiktionary provides the definition
>> "vorschriftsmäßig arbeiten", ...
>
> Idiot.
> The wording was correct in German and you're not German.
>

Do you think only Germans can understand or write correctly in German?
And do you think the /wording/ was the issue?

Given how often you write English that has correct wording, but
nonsensical or incorrect content, I'd assume you do the same in German.
And I'd assume that James was correct and you were wrong, regardless of
the language - that's just the statistics for posts in this group.

Re: Unglaublich, dass das funktioniert:

<ulu99s$g3vp$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2919&group=comp.lang.c%2B%2B#2919

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Unglaublich, dass das funktioniert:
Date: Wed, 20 Dec 2023 09:40:29 +0100
Organization: A noiseless patient Spider
Lines: 5
Message-ID: <ulu99s$g3vp$1@raubtier-asyl.eternal-september.org>
References: <ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>
<ulojnm$3bp7o$1@dont-email.me>
<ulpvt1$3jqmt$1@raubtier-asyl.eternal-september.org>
<ulrf9j$3uhvh$1@dont-email.me>
<uls6vb$2bb0$2@raubtier-asyl.eternal-september.org>
<ulsno1$5eg0$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Dec 2023 08:40:28 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="e15d072def80e99b64772bfcde13d860";
logging-data="528377"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19YIQRhXRfMhrxP1KubkpyE6pcMAx1JHGc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:U8PkoU027z97SDtG7wrpxZJQMOY=
In-Reply-To: <ulsno1$5eg0$1@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Wed, 20 Dec 2023 08:40 UTC

Am 19.12.2023 um 19:34 schrieb David Brown:
'
> Do you think only Germans can understand or write correctly in German?

I can, you can't.

Re: Unglaublich, dass das funktioniert:

<ulurvm$j0q5$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2921&group=comp.lang.c%2B%2B#2921

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!news.swapon.de!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c++
Subject: Re: Unglaublich, dass das funktioniert:
Date: Wed, 20 Dec 2023 14:59:18 +0100
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <ulurvm$j0q5$1@dont-email.me>
References: <ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>
<ulojnm$3bp7o$1@dont-email.me>
<ulpvt1$3jqmt$1@raubtier-asyl.eternal-september.org>
<ulrf9j$3uhvh$1@dont-email.me>
<uls6vb$2bb0$2@raubtier-asyl.eternal-september.org>
<ulsno1$5eg0$1@dont-email.me>
<ulu99s$g3vp$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Dec 2023 13:59:18 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="53c55e9701c1f197290cc0d22587086b";
logging-data="623429"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19DYyRwVsvW7lWlOtSuU+GRGd7NACgZEh0="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:ydnZb97A6vSog5x67V8wGs8LtlQ=
Content-Language: en-GB
In-Reply-To: <ulu99s$g3vp$1@raubtier-asyl.eternal-september.org>
 by: David Brown - Wed, 20 Dec 2023 13:59 UTC

On 20/12/2023 09:40, Bonita Montero wrote:
> Am 19.12.2023 um 19:34 schrieb David Brown:
> '
>> Do you think only Germans can understand or write correctly in German?
>
> I can, you can't.

I know /I/ can't write German - it is a very long time since I studied
it at school. But that's not the point, as I never suggested I knew any
German at all. As usual, you are quite good at writing correct English,
but very bad at reading it.

Re: Unglaublich, dass das funktioniert:

<ulusa1$j0q5$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2922&group=comp.lang.c%2B%2B#2922

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c++
Subject: Re: Unglaublich, dass das funktioniert:
Date: Wed, 20 Dec 2023 15:04:48 +0100
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <ulusa1$j0q5$2@dont-email.me>
References: <ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>
<ulojnm$3bp7o$1@dont-email.me>
<ulpvt1$3jqmt$1@raubtier-asyl.eternal-september.org>
<ulrf9j$3uhvh$1@dont-email.me> <ulshuv$3pbn$1@dont-email.me>
<ulsieu$4h2c$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Dec 2023 14:04:49 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="53c55e9701c1f197290cc0d22587086b";
logging-data="623429"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18pJ/ywPRUMvilLvyIAgeX8LtCSoQW1lSg="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:EjWcv4uv26JXTGNPrbXbXmBRS60=
In-Reply-To: <ulsieu$4h2c$1@raubtier-asyl.eternal-september.org>
Content-Language: en-GB
 by: David Brown - Wed, 20 Dec 2023 14:04 UTC

On 19/12/2023 18:04, Bonita Montero wrote:
> Am 19.12.2023 um 17:55 schrieb James Kuyper:
>
>> Actually, I am 1/4 German. More relevantly, I studied German in school
>> for a couple of years a few decades ago. I claim no great amount of
>> fluency - I rely on translate.google.com, though I feel competent to
>> review it's translations. I would ordinarily very happily defer to the
>> expertise of a native speaker of German, or even a non-native speaker
>> who's had more years of study than I have, or more recently. However,
>> you are so routinely wrong about so many things that I would not trust
>> you to use German correctly even if you are a native speaker.
>>
>> However, if you can cite a respectable online dictionary's definition
>> that supports your use of "functionert" to mean something like "can be
>> compiled" or "is syntactically correct", please do so.
>
> When you say that sth. "funktioniert" it just means that it works.
> It's unbelievable that you deny that compared to a native speaker.

It is not your use of language that is at issue - it is your
understanding of the concept "work". You would have provoked the same
reaction if you had written "It is unbelievable that this worked" in
English.

I would like to be able to say that it is unbelievable that you are
still missing the point, but unfortunately that is not the case.

Re: Unglaublich, dass das funktioniert:

<ulut5s$j7lu$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2923&group=comp.lang.c%2B%2B#2923

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Unglaublich, dass das funktioniert:
Date: Wed, 20 Dec 2023 15:19:42 +0100
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <ulut5s$j7lu$1@raubtier-asyl.eternal-september.org>
References: <ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>
<ulojnm$3bp7o$1@dont-email.me>
<ulpvt1$3jqmt$1@raubtier-asyl.eternal-september.org>
<ulrf9j$3uhvh$1@dont-email.me> <ulshuv$3pbn$1@dont-email.me>
<ulsieu$4h2c$1@raubtier-asyl.eternal-september.org>
<ulusa1$j0q5$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 20 Dec 2023 14:19:41 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="e15d072def80e99b64772bfcde13d860";
logging-data="630462"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19xbQlA3D/XXsxBp7wnGyDtBVLgR3ZmAlw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:O3OuCuKCEeCOfOZcKCLtjztltMU=
In-Reply-To: <ulusa1$j0q5$2@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Wed, 20 Dec 2023 14:19 UTC

Am 20.12.2023 um 15:04 schrieb David Brown:

> It is not your use of language that is at issue - it is your
> understanding of the concept "work".  You would have provoked
> the same reaction if you had written "It is unbelievable that
> this worked" in English.

James' initial objection was that this wasn't correct German.
And for sure only nerds are provoked by that.

Re: Unglaublich, dass das funktioniert:

<20231220095658.193@kylheku.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2925&group=comp.lang.c%2B%2B#2925

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 433-929-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c++
Subject: Re: Unglaublich, dass das funktioniert:
Date: Wed, 20 Dec 2023 18:01:47 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <20231220095658.193@kylheku.com>
References: <ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>
<ulojnm$3bp7o$1@dont-email.me>
<ulpvt1$3jqmt$1@raubtier-asyl.eternal-september.org>
<ulrf9j$3uhvh$1@dont-email.me> <ulshuv$3pbn$1@dont-email.me>
<ulsieu$4h2c$1@raubtier-asyl.eternal-september.org>
<ulusa1$j0q5$2@dont-email.me>
Injection-Date: Wed, 20 Dec 2023 18:01:47 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7a1874e90cebb8b9038f2df9c2b8fd4c";
logging-data="701596"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19rMh3KWd6kBikArAv6leUPSZzWPELadho="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:qlkoXaZpOfJ+SOZpEHa3I1/X12I=
 by: Kaz Kylheku - Wed, 20 Dec 2023 18:01 UTC

On 2023-12-20, David Brown <david.brown@hesbynett.no> wrote:
> On 19/12/2023 18:04, Bonita Montero wrote:
>> Am 19.12.2023 um 17:55 schrieb James Kuyper:
>>
>>> Actually, I am 1/4 German. More relevantly, I studied German in school
>>> for a couple of years a few decades ago. I claim no great amount of
>>> fluency - I rely on translate.google.com, though I feel competent to
>>> review it's translations. I would ordinarily very happily defer to the
>>> expertise of a native speaker of German, or even a non-native speaker
>>> who's had more years of study than I have, or more recently. However,
>>> you are so routinely wrong about so many things that I would not trust
>>> you to use German correctly even if you are a native speaker.
>>>
>>> However, if you can cite a respectable online dictionary's definition
>>> that supports your use of "functionert" to mean something like "can be
>>> compiled" or "is syntactically correct", please do so.
>>
>> When you say that sth. "funktioniert" it just means that it works.
>> It's unbelievable that you deny that compared to a native speaker.
>
> It is not your use of language that is at issue - it is your
> understanding of the concept "work". You would have provoked the same
> reaction if you had written "It is unbelievable that this worked" in
> English.

It's pretty clear to me. The program basically does one of two things
based on the value of argc. So without any description of what "worked"
refers to, the correct debate-level assumption to make is that "worked"
refers to those obvious behaviors that the program has: "I can't believe
that a program executable was produced, and actually has the behavior
that the source code ostensibly seems to be calling for." Which can
only mean, I can't believe that such a combination of constructs is
allowed (if not by the standard, then at least my compiler).

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca
NOTE: If you use Google Groups, I don't see you, unless you're whitelisted.

Re: Unglaublich, dass das funktioniert:

<ulvakg$lgqb$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2926&group=comp.lang.c%2B%2B#2926

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Unglaublich, dass das funktioniert:
Date: Wed, 20 Dec 2023 19:09:21 +0100
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <ulvakg$lgqb$1@raubtier-asyl.eternal-september.org>
References: <ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>
<ulojnm$3bp7o$1@dont-email.me>
<ulpvt1$3jqmt$1@raubtier-asyl.eternal-september.org>
<ulrf9j$3uhvh$1@dont-email.me> <ulshuv$3pbn$1@dont-email.me>
<ulsieu$4h2c$1@raubtier-asyl.eternal-september.org>
<ulusa1$j0q5$2@dont-email.me> <20231220095658.193@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Dec 2023 18:09:20 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="e15d072def80e99b64772bfcde13d860";
logging-data="705355"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1892i9NlqsHOFgGgz3lg1dqzwv2qdht0wc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:9EM+YJEYM3W8vSDZztxNgUfpbVU=
Content-Language: de-DE
In-Reply-To: <20231220095658.193@kylheku.com>
 by: Bonita Montero - Wed, 20 Dec 2023 18:09 UTC

Am 20.12.2023 um 19:01 schrieb Kaz Kylheku:

> It's pretty clear to me. The program basically does one of two things
> based on the value of argc. So without any description of what "worked"
> refers to, the correct debate-level assumption to make is that "worked"
> refers to those obvious behaviors that the program has: "I can't believe
> that a program executable was produced, and actually has the behavior
> that the source code ostensibly seems to be calling for." ...

Yes, it just means that I was surprised that the code compiled. James
was blind for that and thought that I was referring to what the code
does, and not how.

Re: Unglaublich, dass das funktioniert:

<ulvp0j$nshb$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2928&group=comp.lang.c%2B%2B#2928

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jameskuy...@alumni.caltech.edu (James Kuyper)
Newsgroups: comp.lang.c++
Subject: Re: Unglaublich, dass das funktioniert:
Date: Wed, 20 Dec 2023 17:14:42 -0500
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <ulvp0j$nshb$1@dont-email.me>
References: <ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>
<ulojnm$3bp7o$1@dont-email.me>
<ulpvt1$3jqmt$1@raubtier-asyl.eternal-september.org>
<ulrf9j$3uhvh$1@dont-email.me> <ulshuv$3pbn$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Dec 2023 22:14:43 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="855e51e67f250d56f3a8853031bd2b5c";
logging-data="782891"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/wba1KF4FNvNPKYqQxrN6Zph8SBzDevw8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:BSPKR1IQYtYpu4P4BjpKBlxtEW4=
In-Reply-To: <ulshuv$3pbn$1@dont-email.me>
Content-Language: en-US
 by: James Kuyper - Wed, 20 Dec 2023 22:14 UTC

On 2023-12-19 at 12:04, Bonita Moreno wrote:
> Am 19.12.2023 um 17:55 schrieb James Kuyper:
,,,
>> However, if you can cite a respectable online dictionary's definition
>> that supports your use of "functionert" to mean something like "can be
>> compiled" or "is syntactically correct", please do so.
>
> When you say that sth. "funktioniert" it just means that it works.
> It's unbelievable that you deny that compared to a native speaker.

I don't deny it. I very explicitly endorsed translating "functioniert"
with the word "works" - but of the 22 definitions that Wiktionary
provides for the English verb "work", only the 16th is a good match to
the definition of "functionieren": "To function correctly; to act as
intended; to achieve the goal designed for.". Precisely because it is a
good match, it doesn't fit what you were trying to say. You didn't
consider it unbelievable that this program functioned correctly, or that
it acted as intended, or that it achieved the goal it was designed for.
What you seem to have found unbelievable is that it had any defined
behavior at all, rather than being a syntax error.
I'm not surprised by that - most people are surprised when they first
encounter switch() being used in this fashion - but it's not hard to
verify that the standard says nothing negative about such use.

Re: Unglaublich, dass das funktioniert:

<um0niq$vqs2$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2929&group=comp.lang.c%2B%2B#2929

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: andreyta...@hotmail.com (Andrey Tarasevich)
Newsgroups: comp.lang.c++
Subject: Re: Unglaublich, dass das funktioniert:
Date: Wed, 20 Dec 2023 22:56:24 -0800
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <um0niq$vqs2$1@dont-email.me>
References: <ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 21 Dec 2023 06:56:27 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="41af0e057db23e6715d1182c5a80b3ad";
logging-data="1043330"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18qP6uel2rLcyX3OB2quW0p"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ENefzCXI3RE0JBSL6nB8IVrA+fc=
Content-Language: en-US
In-Reply-To: <ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>
 by: Andrey Tarasevich - Thu, 21 Dec 2023 06:56 UTC

On 12/17/23 5:27 AM, Bonita Montero wrote:
> int main( int argc, char ** )
> {
>     switch( argc )
>     {
>         for( ; ; )
>         {
>         case 1:;
>         }
>     }
> }
>

Meh... An old example of break-less switch-case branching

#include <iostream>

int main(int argc, char **)
{
switch (argc)
if (0) case 1: std::cout << 1 << std::endl;
else if (0) case 2: std::cout << 2 << std::endl;
else if (0) case 3: std::cout << 3 << std::endl;
else if (0) default: std::cout << "whatever" << std::endl;
}

As illustrated above, even if the body of switch is not enclosed into `{
.... }`, one can still stuff a lot into a single protracted statement,
including multiple `case` labels.

--
Best regards,
Andrey

Re: Unglaublich, dass das funktioniert:

<um0pph$100f7$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2931&group=comp.lang.c%2B%2B#2931

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!nntp.comgw.net!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: me...@myprovider.invalid (Ralf Goertz)
Newsgroups: comp.lang.c++
Subject: Re: Unglaublich, dass das funktioniert:
Date: Thu, 21 Dec 2023 08:34:09 +0100
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <um0pph$100f7$1@dont-email.me>
References: <ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>
<um0niq$vqs2$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Injection-Date: Thu, 21 Dec 2023 07:34:09 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ab59e37306b484e6f47e9c9ee9ee839b";
logging-data="1049063"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Vx4Pw16awDvBidW56epg0"
Cancel-Lock: sha1:SftfKuo18f6X6thOQp+d3tDW3Fs=
X-Newsreader: Claws Mail 4.2.0 (GTK 3.24.39; x86_64-suse-linux-gnu)
 by: Ralf Goertz - Thu, 21 Dec 2023 07:34 UTC

On Wed, 20 Dec 2023 22:56:24 -0800
Andrey Tarasevich <andreytarasevich@hotmail.com> wrote:

> Meh... An old example of break-less switch-case branching
>
> #include <iostream>
>
> int main(int argc, char **)
> {
> switch (argc)
> if (0) case 1: std::cout << 1 << std::endl;
> else if (0) case 2: std::cout << 2 << std::endl;
> else if (0) case 3: std::cout << 3 << std::endl;
> else if (0) default: std::cout << "whatever" << std::endl;
> }
>
> As illustrated above, even if the body of switch is not enclosed into
> `{ ... }`, one can still stuff a lot into a single protracted
> statement, including multiple `case` labels.

Interestingly enough, I get a warning with gcc:

warning: statement will never be executed [-Wswitch-unreachable]
if (0) case 1: std::cout << 1 << std::endl;

although of course I still see the output of “1” when the program is
called without arguments.

Re: Unglaublich, dass das funktioniert:

<um14v8$11r7q$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2934&group=comp.lang.c%2B%2B#2934

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Unglaublich, dass das funktioniert:
Date: Thu, 21 Dec 2023 11:44:57 +0100
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <um14v8$11r7q$1@raubtier-asyl.eternal-september.org>
References: <ulmt0o$2urci$1@raubtier-asyl.eternal-september.org>
<ulojnm$3bp7o$1@dont-email.me>
<ulpvt1$3jqmt$1@raubtier-asyl.eternal-september.org>
<ulrf9j$3uhvh$1@dont-email.me> <ulshuv$3pbn$1@dont-email.me>
<ulvp0j$nshb$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 21 Dec 2023 10:44:56 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="dbdc32063cf8648a2068507deca7038a";
logging-data="1109242"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/c3ekbrcPX7mjhJab5HAUIzTrlkY1CABk="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:tpejHndZrV+ZFoV5SqolabzmWaM=
In-Reply-To: <ulvp0j$nshb$1@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Thu, 21 Dec 2023 10:44 UTC

Am 20.12.2023 um 23:14 schrieb James Kuyper:

> I don't deny it. I very explicitly endorsed translating "functioniert"
> with the word "works" - but of the 22 definitions that Wiktionary
> provides for the English verb "work", only the 16th is a good match ***

OMG, you're silly. Every german uses that wording and it fits.


devel / comp.lang.c++ / Unglaublich, dass das funktioniert:

Pages:12
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor