Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

This is an unauthorized cybernetic announcement.


devel / comp.lang.c++ / Re: What does this code print ?

SubjectAuthor
* What does this code print ?Bonita Montero
`* Re: What does this code print ?Ben Bacarisse
 +* Re: What does this code print ?Kenny McCormack
 |`* Re: What does this code print ?Bonita Montero
 | +* Re: What does this code print ?Scott Lurndal
 | |+- Re: What does this code print ?Bo Persson
 | |`* Re: What does this code print ?Bonita Montero
 | | `* Re: What does this code print ?Ben Bacarisse
 | |  `- Re: What does this code print ?Bonita Montero
 | `* Re: What does this code print ?Richard Damon
 |  +- Re: What does this code print ?Scott Lurndal
 |  `* Re: What does this code print ?Bonita Montero
 |   `* Re: What does this code print ?Richard Damon
 |    `* Re: What does this code print ?Bonita Montero
 |     +- Re: What does this code print ?Chris M. Thomasson
 |     `* Re: What does this code print ?Richard Damon
 |      `- Re: What does this code print ?Chris M. Thomasson
 +- Re: What does this code print ?Bonita Montero
 +* Re: What does this code print ?Chris M. Thomasson
 |+- Re: What does this code print ?Chris M. Thomasson
 |`- Re: What does this code print ?Bonita Montero
 `* Re: What does this code print ?Chris M. Thomasson
  `* Re: What does this code print ?Bonita Montero
   +* Re: What does this code print ?Richard Damon
   |`* Re: What does this code print ?Bonita Montero
   | `* Re: What does this code print ?Richard Damon
   |  `* Re: What does this code print ?Bonita Montero
   |   `* Re: What does this code print ?Richard Damon
   |    `* Re: What does this code print ?Bonita Montero
   |     `- Re: What does this code print ?Chris M. Thomasson
   +* Re: What does this code print ?Kaz Kylheku
   |+* Re: What does this code print ?Chris M. Thomasson
   ||`* Re: What does this code print ?Kaz Kylheku
   || +- Re: What does this code print ?Chris M. Thomasson
   || `* Re: What does this code print ?Paavo Helde
   ||  `* Re: What does this code print ?Chris M. Thomasson
   ||   `* Re: What does this code print ?Kaz Kylheku
   ||    `* Re: What does this code print ?Paavo Helde
   ||     `* Re: What does this code print ?Kaz Kylheku
   ||      `* Re: What does this code print ?Chris M. Thomasson
   ||       `- Re: What does this code print ?Chris M. Thomasson
   |`* Re: What does this code print ?Bonita Montero
   | `* Re: What does this code print ?Kaz Kylheku
   |  +- Re: What does this code print ?Richard Damon
   |  `- Re: What does this code print ?Bonita Montero
   +* Re: What does this code print ?Richard Damon
   |`* Re: What does this code print ?Bonita Montero
   | +* Re: What does this code print ?Bonita Montero
   | |+* Re: What does this code print ?Bonita Montero
   | ||`* Re: What does this code print ?Richard Damon
   | || `* Re: What does this code print ?Bonita Montero
   | ||  `* Re: What does this code print ?Richard Damon
   | ||   +* Re: What does this code print ?Bonita Montero
   | ||   |`- Re: What does this code print ?Richard Damon
   | ||   `* Re: What does this code print ?Bonita Montero
   | ||    `* Re: What does this code print ?Kaz Kylheku
   | ||     `* Re: What does this code print ?Bonita Montero
   | ||      `* Re: What does this code print ?Kaz Kylheku
   | ||       +- Re: What does this code print ?Richard Damon
   | ||       `* Re: What does this code print ?Chris M. Thomasson
   | ||        `* Re: What does this code print ?Kaz Kylheku
   | ||         `* Re: What does this code print ?Bonita Montero
   | ||          +* Re: What does this code print ?Richard Damon
   | ||          |`* Re: What does this code print ?Bonita Montero
   | ||          | `* Re: What does this code print ?Richard Damon
   | ||          |  `* Re: What does this code print ?Bonita Montero
   | ||          |   `* Re: What does this code print ?Richard Damon
   | ||          |    `* Re: What does this code print ?Bonita Montero
   | ||          |     `* Re: What does this code print ?Richard Damon
   | ||          |      `* Re: What does this code print ?Bonita Montero
   | ||          |       `* Re: What does this code print ?Richard Damon
   | ||          |        `* Re: What does this code print ?Bonita Montero
   | ||          |         `* Re: What does this code print ?Richard Damon
   | ||          |          `* Re: What does this code print ?Bonita Montero
   | ||          |           +- Re: What does this code print ?Branimir Maksimovic
   | ||          |           `* Re: What does this code print ?Richard Damon
   | ||          |            `* Re: What does this code print ?Bonita Montero
   | ||          |             `* Re: What does this code print ?Richard Damon
   | ||          |              `* Re: What does this code print ?Bonita Montero
   | ||          |               +* Re: What does this code print ?Richard Damon
   | ||          |               |+* Re: What does this code print ?Bonita Montero
   | ||          |               ||+* Re: What does this code print ?Richard Damon
   | ||          |               |||`* Re: What does this code print ?Bonita Montero
   | ||          |               ||| `* Re: What does this code print ?Richard Damon
   | ||          |               |||  `* Re: What does this code print ?Bonita Montero
   | ||          |               |||   `* Re: What does this code print ?Richard Damon
   | ||          |               |||    `* Re: What does this code print ?Bonita Montero
   | ||          |               |||     `* Re: What does this code print ?Kaz Kylheku
   | ||          |               |||      `* Re: What does this code print ?Bonita Montero
   | ||          |               |||       `* Re: What does this code print ?Richard Damon
   | ||          |               |||        `- Re: What does this code print ?Bonita Montero
   | ||          |               ||`* Re: What does this code print ?Branimir Maksimovic
   | ||          |               || `- Re: What does this code print ?Bonita Montero
   | ||          |               |`* Re: What does this code print ?Scott Lurndal
   | ||          |               | `- Re: What does this code print ?Richard Damon
   | ||          |               `* Re: What does this code print ?Kaz Kylheku
   | ||          |                `- Re: What does this code print ?Bonita Montero
   | ||          `* Re: What does this code print ?Kaz Kylheku
   | ||           +* Re: What does this code print ?Bo Persson
   | ||           |`- Re: What does this code print ?Kaz Kylheku
   | ||           `* Re: What does this code print ?Bonita Montero
   | |`* Re: What does this code print ?Richard Damon
   | +* Re: What does this code print ?Scott Lurndal
   | `- Re: What does this code print ?Richard Damon
   `* Re: What does this code print ?Chris M. Thomasson

Pages:123456
Re: What does this code print ?

<uge6j1$3spt4$4@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: What does this code print ?
Date: Sat, 14 Oct 2023 15:54:41 +0200
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <uge6j1$3spt4$4@dont-email.me>
References: <ug54sf$1ki2m$1@dont-email.me> <87lec95n0t.fsf@bsb.me.uk>
<ugaeqo$2vefi$1@dont-email.me> <ugapal$31eim$1@dont-email.me>
<20231013081459.652@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 14 Oct 2023 13:54:41 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e339d1a9ba3717ee50ff255201bd4cec";
logging-data="4089764"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX193wI2Uyxlq76xzIvBaSjYuKV4kMBGIsKw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:QtxGjdtvmAJYJaaolJ0btI8vfqc=
Content-Language: de-DE
In-Reply-To: <20231013081459.652@kylheku.com>
 by: Bonita Montero - Sat, 14 Oct 2023 13:54 UTC

Am 13.10.2023 um 18:34 schrieb Kaz Kylheku:

> I don't believe it. ...

Compile it with Godbolt and you see that the lambda is instantiated
twice.

> It's possible that inlining will render this consideration
> moot, because if the function is inlined, then no actual calls are
> happening, and there are no calling conventions.

The function is called behind a volatile function pointer, so there's
no inlining.

Rest of your nonsense unread.

Re: What does this code print ?

<ugebv3$1gabn$1@i2pn2.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!.POSTED!not-for-mail
From: rich...@damon-family.org (Richard Damon)
Newsgroups: comp.lang.c++
Subject: Re: What does this code print ?
Date: Sat, 14 Oct 2023 11:26:27 -0400
Organization: i2pn2 (i2pn.org)
Message-ID: <ugebv3$1gabn$1@i2pn2.org>
References: <ug54sf$1ki2m$1@dont-email.me> <87lec95n0t.fsf@bsb.me.uk>
<ug66v8$21ehl$1@news.xmission.com> <ug6lk8$1ur0k$2@dont-email.me>
<ugbq8q$19fre$2@i2pn2.org> <uge6f5$3spt4$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 14 Oct 2023 15:26:27 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="1583479"; mail-complaints-to="usenet@i2pn2.org";
posting-account="diqKR1lalukngNWEqoq9/uFtbkm5U+w3w6FQ0yesrXg";
User-Agent: Mozilla Thunderbird
In-Reply-To: <uge6f5$3spt4$2@dont-email.me>
Content-Language: en-US
 by: Richard Damon - Sat, 14 Oct 2023 15:26 UTC

On 10/14/23 9:52 AM, Bonita Montero wrote:
> Am 13.10.2023 um 18:12 schrieb Richard Damon:
>> On 10/11/23 1:22 PM, Bonita Montero wrote:
>>> Am 11.10.2023 um 15:12 schrieb Kenny McCormack:
>>>
>>>> Actually, it is pretty easy to answer OP's question.  Here's what it
>>>> prints:
>>>>
>>>> <stdin>: In function 'int main()':
>>>> <stdin>:12:8: error: '__fastcall' was not declared in this scope
>>>> <stdin>:12:3: error: expected primary-expression before 'int'
>>>> <stdin>:13:8: error: '__stdcall' was not declared in this scope
>>>> <stdin>:13:3: error: expected primary-expression before 'int'
>>>> <stdin>:14:11: error: 'pFnFastcall' was not declared in this scope
>>>> <stdin>:15:11: error: 'pFnStdcall' was not declared in this scope
>>>>
>>>> And it is, in theory at least, possible to predict that without using a
>>>> compiler (though, truth to be told, I did cheat and use the compiler).
>>>
>>> Use a compiler which knows __fastcall and __stdcall.
>>>
>>>
>>
>> But ANY program using those, that is to be interpreted as "Standard
>> C++", has, by the Standard "Undefined Behavior".
>
> This is just a Windows program. If you don't like it, don't worry
> about  it.Others might be able to understand this without Windows,
> but you can't.
>
>

Who said I didn't understand it.

YOU are the one that doesn't seem to understand what a Standard says.

YOU didn't say "Windows", so YOU are the one that made the error,
perhaps because you think all the world is just Windows, which is WRONG
(and shows your ignorance).

>
>>
>> So, the answer, when posted as a general "C++" question, is, it does
>> what ever the implementation wants it to do.
>>
>> To get your answer, you need to limit the "Language" of the program to
>> the particular implementation you desire.
>>
>> I could CORRECTLY state (if I want to go to the effort) that when I
>> complied the program, its output was "Bonita is a idiot", because that
>> is what the Damon C++ compiler generated, and it is fully conforming.
>>
>> (And that answer IS a correct statement).
>

Re: What does this code print ?

<ugebv8$1gabn$2@i2pn2.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!.POSTED!not-for-mail
From: rich...@damon-family.org (Richard Damon)
Newsgroups: comp.lang.c++
Subject: Re: What does this code print ?
Date: Sat, 14 Oct 2023 11:26:32 -0400
Organization: i2pn2 (i2pn.org)
Message-ID: <ugebv8$1gabn$2@i2pn2.org>
References: <ug54sf$1ki2m$1@dont-email.me> <87lec95n0t.fsf@bsb.me.uk>
<ugaeqo$2vefi$1@dont-email.me> <ugapal$31eim$1@dont-email.me>
<ugbqf7$19fre$3@i2pn2.org> <uge6gg$3spt4$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 14 Oct 2023 15:26:32 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="1583479"; mail-complaints-to="usenet@i2pn2.org";
posting-account="diqKR1lalukngNWEqoq9/uFtbkm5U+w3w6FQ0yesrXg";
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <uge6gg$3spt4$3@dont-email.me>
 by: Richard Damon - Sat, 14 Oct 2023 15:26 UTC

On 10/14/23 9:53 AM, Bonita Montero wrote:
> Am 13.10.2023 um 18:15 schrieb Richard Damon:
>> On 10/13/23 2:50 AM, Bonita Montero wrote:
>>> Am 13.10.2023 um 05:50 schrieb Chris M. Thomasson:
>>>> On 10/11/2023 6:03 AM, Ben Bacarisse wrote:
>>>>> Bonita Montero <Bonita.Montero@gmail.com> writes:
>>>>>
>>>>>> #include <iostream>
>>>>>>
>>>>>> using namespace std;
>>>>>>
>>>>>> int main()
>>>>>> {
>>>>>>     auto lambda = []( int a ) -> int
>>>>>>     {
>>>>>>         thread_local int i = 0;
>>>>>>         return i++ + a;
>>>>>>     };
>>>>>>     int (__fastcall *volatile pFnFastcall)( int ) = lambda;
>>>>>>     int (__stdcall *volatile pFnStdcall)( int ) = lambda;
>>>>>>     cout << pFnFastcall( 10 ) << endl;
>>>>>>     cout << pFnStdcall( 9 ) << endl;
>>>>>> }
>>>>>>
>>>>>> Don't compile it yourself,
>>>>>
>>>>> An easy injunction to follow since it has syntax errors!  Presumably
>>>>> those undeclared identifiers (or proprietary keywords?) have some
>>>>> meaning to your compiler.
>>>>>
>>>>>> just guess.
>>>>>
>>>>
>>>>
>>>> What is 10 * 10?
>>>> It's one hundred percent that the lovely Bonita is a troll.
>>>
>>>
>>> O.k., I'll explain it: the lambda is compiled twice for each cal-
>>> ling convention but in contrast to a generic lambda the thread
>>> local variable "i" exists only once for both "instantiations" !
>>> With a generic lambda there would be an "i" for each instanti-
>>> ation of the lambda's calling operator. I thought the people
>>> here should be able to think about that without compiling the
>>> code.
>>> And you call that trolling ...
>>
>> And your lack of knowledge of how the standard actually works just
>> shows how little you really know.
>
> I know that this isn't standard C++.
> But this doesn't matter for my question.

IF you don't have a "Standard" to apply the question to ANY answer could
be correct.

As I said, YOU can't refute that under a possible implementation, the
correct answer would be:

"Bonita is an Idiot" (or anything else).

So, you are just asking meaningless questions.

Re: What does this code print ?

<ugegmt$3uo8b$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: news.x.r...@xoxy.net (Richard Damon)
Newsgroups: comp.lang.c++
Subject: Re: What does this code print ?
Date: Sat, 14 Oct 2023 12:47:24 -0400
Organization: A noiseless patient Spider
Lines: 61
Message-ID: <ugegmt$3uo8b$1@dont-email.me>
References: <ug54sf$1ki2m$1@dont-email.me> <87lec95n0t.fsf@bsb.me.uk>
<ugaeqo$2vefi$1@dont-email.me> <ugapal$31eim$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 14 Oct 2023 16:47:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1bccc823aaf38f0bb4782912bff71ca0";
logging-data="4153611"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19FRYiy0dUgReu4ee/3yFMtb4HmcXb5Ddw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:8rYzMfCsvu9TCf5sWb2/RwpCwZM=
Content-Language: en-US
In-Reply-To: <ugapal$31eim$1@dont-email.me>
 by: Richard Damon - Sat, 14 Oct 2023 16:47 UTC

On 10/13/23 2:50 AM, Bonita Montero wrote:
> Am 13.10.2023 um 05:50 schrieb Chris M. Thomasson:
>> On 10/11/2023 6:03 AM, Ben Bacarisse wrote:
>>> Bonita Montero <Bonita.Montero@gmail.com> writes:
>>>
>>>> #include <iostream>
>>>>
>>>> using namespace std;
>>>>
>>>> int main()
>>>> {
>>>>     auto lambda = []( int a ) -> int
>>>>     {
>>>>         thread_local int i = 0;
>>>>         return i++ + a;
>>>>     };
>>>>     int (__fastcall *volatile pFnFastcall)( int ) = lambda;
>>>>     int (__stdcall *volatile pFnStdcall)( int ) = lambda;
>>>>     cout << pFnFastcall( 10 ) << endl;
>>>>     cout << pFnStdcall( 9 ) << endl;
>>>> }
>>>>
>>>> Don't compile it yourself,
>>>
>>> An easy injunction to follow since it has syntax errors!  Presumably
>>> those undeclared identifiers (or proprietary keywords?) have some
>>> meaning to your compiler.
>>>
>>>> just guess.
>>>
>>
>>
>> What is 10 * 10?
>> It's one hundred percent that the lovely Bonita is a troll.
>
>
> O.k., I'll explain it: the lambda is compiled twice for each cal-
> ling convention but in contrast to a generic lambda the thread
> local variable "i" exists only once for both "instantiations" !
> With a generic lambda there would be an "i" for each instanti-
> ation of the lambda's calling operator. I thought the people
> here should be able to think about that without compiling the
> code.
> And you call that trolling ...

Can you point to any words in the standard that allows the lambda
expression to get "recompiled" for different calling conventions?

Since the lambda has no "auto" parameters, it is NOT a "generic" lambda
that gets recompiled under different usages, so I am not sure what basis
you have to claim the ability to "compile" it generically.

This might just be a common extension.

The fact that others have pointed out that when compiling for current
operating systems, the common compilers that understand those reserved
symbols point out that they are just ignored.

Did you actually look at the generated code to see that it in fact DID
get generated twice? or are you just guessing (perhaps wrongly) as you
seem to do so often.

Re: What does this code print ?

<20231014105829.590@kylheku.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 864-117-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c++
Subject: Re: What does this code print ?
Date: Sat, 14 Oct 2023 18:05:39 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <20231014105829.590@kylheku.com>
References: <ug54sf$1ki2m$1@dont-email.me> <87lec95n0t.fsf@bsb.me.uk>
<ugaeqo$2vefi$1@dont-email.me> <ugapal$31eim$1@dont-email.me>
<20231013081459.652@kylheku.com> <uge6j1$3spt4$4@dont-email.me>
Injection-Date: Sat, 14 Oct 2023 18:05:39 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0b58a9e51d01575394271395df94341e";
logging-data="4190922"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18OMJ5P+mXrBeADS8D3D2vyQ9ZR9yvr2+c="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:ifXai0ihTuiT6ZSVmjNoWjxmrBM=
 by: Kaz Kylheku - Sat, 14 Oct 2023 18:05 UTC

On 2023-10-14, Bonita Montero <Bonita.Montero@gmail.com> wrote:
> Am 13.10.2023 um 18:34 schrieb Kaz Kylheku:
>
>> I don't believe it. ...
>
> Compile it with Godbolt and you see that the lambda is instantiated
> twice.

To clarify, what I don't believe is the idea that the behavior you are
seeing is documented and reliable.

>> It's possible that inlining will render this consideration
>> moot, because if the function is inlined, then no actual calls are
>> happening, and there are no calling conventions.
>
> The function is called behind a volatile function pointer, so there's
> no inlining.

A volatile on a local variable whose address isn't taken, in a function
where setjmp isn't being used, means approximately to nothing. The
compiler is allowed to deduce that the pointer points to that lambda
regardless of the volatile.

> Rest of your nonsense unread.

"Nonsense" like how different calling conventions are incompatible,
making the code utter garbage where those keywords are not ignored.

--
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: What does this code print ?

<ugemtr$61v$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: What does this code print ?
Date: Sat, 14 Oct 2023 11:33:31 -0700
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <ugemtr$61v$1@dont-email.me>
References: <ug54sf$1ki2m$1@dont-email.me> <87lec95n0t.fsf@bsb.me.uk>
<ugaeqo$2vefi$1@dont-email.me> <ugapal$31eim$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 14 Oct 2023 18:33:31 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2cf987f24d0b23d2f1e28b52964b1913";
logging-data="6207"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/tZVNs6dg/NdnbPNs8FpvAz/Pa7peE+JE="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:FZWTSJLAgZHVOVIrGMPEyyX01dU=
In-Reply-To: <ugapal$31eim$1@dont-email.me>
Content-Language: en-US
 by: Chris M. Thomasson - Sat, 14 Oct 2023 18:33 UTC

On 10/12/2023 11:50 PM, Bonita Montero wrote:
> Am 13.10.2023 um 05:50 schrieb Chris M. Thomasson:
>> On 10/11/2023 6:03 AM, Ben Bacarisse wrote:
>>> Bonita Montero <Bonita.Montero@gmail.com> writes:
>>>
>>>> #include <iostream>
>>>>
>>>> using namespace std;
>>>>
>>>> int main()
>>>> {
>>>>     auto lambda = []( int a ) -> int
>>>>     {
>>>>         thread_local int i = 0;
>>>>         return i++ + a;
>>>>     };
>>>>     int (__fastcall *volatile pFnFastcall)( int ) = lambda;
>>>>     int (__stdcall *volatile pFnStdcall)( int ) = lambda;
>>>>     cout << pFnFastcall( 10 ) << endl;
>>>>     cout << pFnStdcall( 9 ) << endl;
>>>> }
>>>>
>>>> Don't compile it yourself,
>>>
>>> An easy injunction to follow since it has syntax errors!  Presumably
>>> those undeclared identifiers (or proprietary keywords?) have some
>>> meaning to your compiler.
>>>
>>>> just guess.
>>>
>>
>>
>> What is 10 * 10?
>> It's one hundred percent that the lovely Bonita is a troll.
>
>
> O.k., I'll explain it: the lambda is compiled twice for each cal-
> ling convention but in contrast to a generic lambda the thread
> local variable "i" exists only once for both "instantiations" !
> With a generic lambda there would be an "i" for each instanti-
> ation of the lambda's calling operator. I thought the people
> here should be able to think about that without compiling the
> code.
> And you call that trolling ...

10 10 is a hint...

Re: What does this code print ?

<ugeo5l$gqp$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!rocksolid2!news.neodome.net!weretis.net!feeder8.news.weretis.net!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: eesn...@osa.pri.ee (Paavo Helde)
Newsgroups: comp.lang.c++
Subject: Re: What does this code print ?
Date: Sat, 14 Oct 2023 21:54:44 +0300
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <ugeo5l$gqp$1@dont-email.me>
References: <ug54sf$1ki2m$1@dont-email.me> <87lec95n0t.fsf@bsb.me.uk>
<ugaeqo$2vefi$1@dont-email.me> <ugapal$31eim$1@dont-email.me>
<ugemtr$61v$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 14 Oct 2023 18:54:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="83cefa56723c8357b2a9a681a7fab4ca";
logging-data="17241"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+nr1E/ME0mMCYdeLLz7MHeK7x7/0Ty3Z0="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:R/Ct+Xao2LPH/eW5FAaQvDs6l7w=
Content-Language: en-US
In-Reply-To: <ugemtr$61v$1@dont-email.me>
 by: Paavo Helde - Sat, 14 Oct 2023 18:54 UTC

14.10.2023 21:33 Chris M. Thomasson kirjutas:
> On 10/12/2023 11:50 PM, Bonita Montero wrote:
>> Am 13.10.2023 um 05:50 schrieb Chris M. Thomasson:
>>> On 10/11/2023 6:03 AM, Ben Bacarisse wrote:
>>>> Bonita Montero <Bonita.Montero@gmail.com> writes:
>>>>
>>>>> #include <iostream>
>>>>>
>>>>> using namespace std;
>>>>>
>>>>> int main()
>>>>> {
>>>>>     auto lambda = []( int a ) -> int
>>>>>     {
>>>>>         thread_local int i = 0;
>>>>>         return i++ + a;
>>>>>     };
>>>>>     int (__fastcall *volatile pFnFastcall)( int ) = lambda;
>>>>>     int (__stdcall *volatile pFnStdcall)( int ) = lambda;
>>>>>     cout << pFnFastcall( 10 ) << endl;
>>>>>     cout << pFnStdcall( 9 ) << endl;
>>>>> }
>
> 10 10 is a hint...

I also got 10 10, first in my head, and my compiler agreed as well (VS2022).

Re: What does this code print ?

<ugeo9l$61v$3@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: What does this code print ?
Date: Sat, 14 Oct 2023 11:56:53 -0700
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <ugeo9l$61v$3@dont-email.me>
References: <ug54sf$1ki2m$1@dont-email.me> <87lec95n0t.fsf@bsb.me.uk>
<ugaeqo$2vefi$1@dont-email.me> <ugapal$31eim$1@dont-email.me>
<ugemtr$61v$1@dont-email.me> <ugeo5l$gqp$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 14 Oct 2023 18:56:53 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2cf987f24d0b23d2f1e28b52964b1913";
logging-data="6207"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+KfLEaq8l2S6l+UDnKDSZh0FOaKQzBDVE="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:41NCFSLaf1LsWuBjvxIgzwZYYEs=
In-Reply-To: <ugeo5l$gqp$1@dont-email.me>
Content-Language: en-US
 by: Chris M. Thomasson - Sat, 14 Oct 2023 18:56 UTC

On 10/14/2023 11:54 AM, Paavo Helde wrote:
> 14.10.2023 21:33 Chris M. Thomasson kirjutas:
>> On 10/12/2023 11:50 PM, Bonita Montero wrote:
>>> Am 13.10.2023 um 05:50 schrieb Chris M. Thomasson:
>>>> On 10/11/2023 6:03 AM, Ben Bacarisse wrote:
>>>>> Bonita Montero <Bonita.Montero@gmail.com> writes:
>>>>>
>>>>>> #include <iostream>
>>>>>>
>>>>>> using namespace std;
>>>>>>
>>>>>> int main()
>>>>>> {
>>>>>>     auto lambda = []( int a ) -> int
>>>>>>     {
>>>>>>         thread_local int i = 0;
>>>>>>         return i++ + a;
>>>>>>     };
>>>>>>     int (__fastcall *volatile pFnFastcall)( int ) = lambda;
>>>>>>     int (__stdcall *volatile pFnStdcall)( int ) = lambda;
>>>>>>     cout << pFnFastcall( 10 ) << endl;
>>>>>>     cout << pFnStdcall( 9 ) << endl;
>>>>>> }
>>
>> 10 10 is a hint...
>
> I also got 10 10, first in my head, and my compiler agreed as well
> (VS2022).

:^)

I wanted to see if Bonita would pick on my message up thread that says:
_________________
What is 10 * 10? It's one hundred percent that the lovely Bonita is a
troll.
_________________

Just wanted to see if he/she could pick up on it.

Re: What does this code print ?

<ugeoc7$1gpne$1@i2pn2.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!.POSTED!not-for-mail
From: rich...@damon-family.org (Richard Damon)
Newsgroups: comp.lang.c++
Subject: Re: What does this code print ?
Date: Sat, 14 Oct 2023 14:58:15 -0400
Organization: i2pn2 (i2pn.org)
Message-ID: <ugeoc7$1gpne$1@i2pn2.org>
References: <ug54sf$1ki2m$1@dont-email.me> <87lec95n0t.fsf@bsb.me.uk>
<ugaeqo$2vefi$1@dont-email.me> <ugapal$31eim$1@dont-email.me>
<20231013081459.652@kylheku.com> <uge6j1$3spt4$4@dont-email.me>
<20231014105829.590@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 14 Oct 2023 18:58:16 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="1599214"; mail-complaints-to="usenet@i2pn2.org";
posting-account="diqKR1lalukngNWEqoq9/uFtbkm5U+w3w6FQ0yesrXg";
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <20231014105829.590@kylheku.com>
 by: Richard Damon - Sat, 14 Oct 2023 18:58 UTC

On 10/14/23 2:05 PM, Kaz Kylheku wrote:
> On 2023-10-14, Bonita Montero <Bonita.Montero@gmail.com> wrote:
>> Am 13.10.2023 um 18:34 schrieb Kaz Kylheku:
>>
>>> I don't believe it. ...
>>
>> Compile it with Godbolt and you see that the lambda is instantiated
>> twice.
>
> To clarify, what I don't believe is the idea that the behavior you are
> seeing is documented and reliable.
>
>>> It's possible that inlining will render this consideration
>>> moot, because if the function is inlined, then no actual calls are
>>> happening, and there are no calling conventions.
>>
>> The function is called behind a volatile function pointer, so there's
>> no inlining.
>
> A volatile on a local variable whose address isn't taken, in a function
> where setjmp isn't being used, means approximately to nothing. The
> compiler is allowed to deduce that the pointer points to that lambda
> regardless of the volatile.

I don't think that is true, The volatile modifier says that it might be
changed/accessed by things beyond the implementations knowledge. The
caller might well have passed the address of the future variable to
some other actor, perhaps getting an interrupt when the variable was
written and then doing something to it.

>
>> Rest of your nonsense unread.
>
> "Nonsense" like how different calling conventions are incompatible,
> making the code utter garbage where those keywords are not ignored.
>

Re: What does this code print ?

<ugg2j5$cf8s$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: What does this code print ?
Date: Sun, 15 Oct 2023 08:58:47 +0200
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <ugg2j5$cf8s$1@dont-email.me>
References: <ug54sf$1ki2m$1@dont-email.me> <87lec95n0t.fsf@bsb.me.uk>
<ugaeqo$2vefi$1@dont-email.me> <ugapal$31eim$1@dont-email.me>
<20231013081459.652@kylheku.com> <uge6j1$3spt4$4@dont-email.me>
<20231014105829.590@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 15 Oct 2023 06:58:46 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8a2f8c9bc712460c11ec71e596a58ef5";
logging-data="408860"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+STgP99Jp8KKAKaST6WIARboqT+29S3l0="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Q2QQ6r6hj1uHOfl8JFQ433PQUL0=
Content-Language: de-DE
In-Reply-To: <20231014105829.590@kylheku.com>
 by: Bonita Montero - Sun, 15 Oct 2023 06:58 UTC

Am 14.10.2023 um 20:05 schrieb Kaz Kylheku:

> To clarify, what I don't believe is the idea that the behavior you are
> seeing is documented and reliable.

If MSVC supports that it won't drop that. clang-cl also supports
that for a long time, but implemented that later than MSVC.

> A volatile on a local variable whose address isn't taken, in a function
> where setjmp isn't being used, means approximately to nothing.

What a volatile does is compiler-dependent and both supporting compilers
(MSVC, clang-cl) implemented that in a way that what I did works, i.e.
the compiler couldn't inline the code.

Re: What does this code print ?

<ugg2li$cf8s$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!news.chmurka.net!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: What does this code print ?
Date: Sun, 15 Oct 2023 09:00:04 +0200
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <ugg2li$cf8s$2@dont-email.me>
References: <ug54sf$1ki2m$1@dont-email.me> <87lec95n0t.fsf@bsb.me.uk>
<ugaeqo$2vefi$1@dont-email.me> <ugapal$31eim$1@dont-email.me>
<ugbqf7$19fre$3@i2pn2.org> <uge6gg$3spt4$3@dont-email.me>
<ugebv8$1gabn$2@i2pn2.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 15 Oct 2023 07:00:02 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8a2f8c9bc712460c11ec71e596a58ef5";
logging-data="408860"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+6obPOyQ6w+Ck72oWx1MJ4CoBQreO4HCA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:cku7bqqJ+3ihOwwkH3sRdVqClEw=
Content-Language: de-DE
In-Reply-To: <ugebv8$1gabn$2@i2pn2.org>
 by: Bonita Montero - Sun, 15 Oct 2023 07:00 UTC

Am 14.10.2023 um 17:26 schrieb Richard Damon:

> "Bonita is an Idiot" (or anything else).

No, you were just frustated that you didn't know the answer
to my initial question and wanted to discuss away the question
with: this isn't up to the standard.

Re: What does this code print ?

<ugg33f$cf8s$3@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!news.nntp4.net!news.hispagatos.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: What does this code print ?
Date: Sun, 15 Oct 2023 09:07:29 +0200
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <ugg33f$cf8s$3@dont-email.me>
References: <ug54sf$1ki2m$1@dont-email.me> <87lec95n0t.fsf@bsb.me.uk>
<ugaeqo$2vefi$1@dont-email.me> <ugapal$31eim$1@dont-email.me>
<ugegmt$3uo8b$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 15 Oct 2023 07:07:27 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8a2f8c9bc712460c11ec71e596a58ef5";
logging-data="408860"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/8GGEPk8CspzTvR8V9vD7LgBgYyCRECgQ="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:I96J8567xYE8VK04n47+wa929dM=
In-Reply-To: <ugegmt$3uo8b$1@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Sun, 15 Oct 2023 07:07 UTC

Am 14.10.2023 um 18:47 schrieb Richard Damon:

> Can you point to any words in the standard that allows the lambda
> expression to get "recompiled" for different calling conventions?

MSVC and clang-cl do that.

> Since the lambda has no "auto" parameters, it is NOT a "generic" lambda
> that gets recompiled under different usages, ...

I didn't say that it is generic but there's an opposite analogy to
generic lambdas that thread local and shared variables are shared
among the different instantiations for different calling conventions.

> The fact that others have pointed out that when compiling for current
> operating systems, the common compilers that understand those reserved
> symbols point out that they are just ignored.

The compiler can't ignore the calling convention since the definition
of the variable and the assignment might be spareate. I just printed
both pointer's addresses and I get different addresses. So there are
only two options left: either there are separate instantiations for
each calling convention or there's additional thunk code for each
calling convention that doesn't mach the standard calling convention.

> Did you actually look at the generated code to see that it in fact DID
> get generated twice? ...

Yes, and as I said both pointers have different addresses.

Re: What does this code print ?

<ugg350$cf8s$4@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: What does this code print ?
Date: Sun, 15 Oct 2023 09:08:17 +0200
Organization: A noiseless patient Spider
Lines: 5
Message-ID: <ugg350$cf8s$4@dont-email.me>
References: <ug54sf$1ki2m$1@dont-email.me> <87lec95n0t.fsf@bsb.me.uk>
<ug66v8$21ehl$1@news.xmission.com> <ug6lk8$1ur0k$2@dont-email.me>
<ugbq8q$19fre$2@i2pn2.org> <uge6f5$3spt4$2@dont-email.me>
<ugebv3$1gabn$1@i2pn2.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 15 Oct 2023 07:08:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8a2f8c9bc712460c11ec71e596a58ef5";
logging-data="408860"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19azSHLWI0vAe26p6a2PoDi3MmpsA8Lvrs="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:vWxPWA/RKm3KlqmhMkgWPBLaZtg=
In-Reply-To: <ugebv3$1gabn$1@i2pn2.org>
Content-Language: de-DE
 by: Bonita Montero - Sun, 15 Oct 2023 07:08 UTC

Am 14.10.2023 um 17:26 schrieb Richard Damon:

> Who said I didn't understand it.

You're a nerd and I know nerds.

Re: What does this code print ?

<ugg3c2$ckp0$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: What does this code print ?
Date: Sun, 15 Oct 2023 09:12:03 +0200
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <ugg3c2$ckp0$1@dont-email.me>
References: <ug54sf$1ki2m$1@dont-email.me> <87lec95n0t.fsf@bsb.me.uk>
<ugaeqo$2vefi$1@dont-email.me> <ugapal$31eim$1@dont-email.me>
<ugegmt$3uo8b$1@dont-email.me> <ugg33f$cf8s$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 15 Oct 2023 07:12:02 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8a2f8c9bc712460c11ec71e596a58ef5";
logging-data="414496"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19jRbZ1aMsPQ1wBWm6gA+U+n9+tJCa/L4E="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:vRBxaJ5IvqfwiGQ8MmmgHS8AOXw=
In-Reply-To: <ugg33f$cf8s$3@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Sun, 15 Oct 2023 07:12 UTC

Am 15.10.2023 um 09:07 schrieb Bonita Montero:

> The compiler can't ignore the calling convention since the definition
> of the variable and the assignment might be spareate. I just printed
> both pointer's addresses and I get different addresses. So there are
> only two options left: either there are separate instantiations for
> each calling convention or there's additional thunk code for each
> calling convention that doesn't mach the standard calling convention.

This are both instantiations copied from the disassembly in the
debugger:

005F10D0 64 A1 2C 00 00 00 mov eax,dword ptr fs:[0000002Ch]
005F10D6 56 push esi
005F10D7 8B 30 mov esi,dword ptr [eax]
005F10D9 8B 96 04 00 00 00 mov edx,dword ptr [esi+4]
005F10DF 8D 42 01 lea eax,[edx+1]
005F10E2 89 86 04 00 00 00 mov dword ptr [esi+4],eax
005F10E8 8D 04 0A lea eax,[edx+ecx]
005F10EB 5E pop esi
005F10EC C3 ret

005F10A0 55 push ebp
005F10A1 8B EC mov ebp,esp
005F10A3 64 A1 2C 00 00 00 mov eax,dword ptr fs:[0000002Ch]
005F10A9 8B 08 mov ecx,dword ptr [eax]
005F10AB 8B 91 04 00 00 00 mov edx,dword ptr [ecx+4]
005F10B1 8D 42 01 lea eax,[edx+1]
005F10B4 89 81 04 00 00 00 mov dword ptr [ecx+4],eax
005F10BA 8B 45 08 mov eax,dword ptr [a]
005F10BD 03 C2 add eax,edx
005F10BF 5D pop ebp
005F10C0 C2 04 00 ret 4

Re: What does this code print ?

<ugg3l3$cmg4$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: What does this code print ?
Date: Sun, 15 Oct 2023 09:16:52 +0200
Organization: A noiseless patient Spider
Lines: 40
Message-ID: <ugg3l3$cmg4$1@dont-email.me>
References: <ug54sf$1ki2m$1@dont-email.me> <87lec95n0t.fsf@bsb.me.uk>
<ugaeqo$2vefi$1@dont-email.me> <ugapal$31eim$1@dont-email.me>
<ugegmt$3uo8b$1@dont-email.me> <ugg33f$cf8s$3@dont-email.me>
<ugg3c2$ckp0$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 15 Oct 2023 07:16:51 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8a2f8c9bc712460c11ec71e596a58ef5";
logging-data="416260"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/SN4rQqrZHwOfwoiBt/P3OG/dNsNhWxV8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:4hdNtdS1VvvCmDGe56MthfCzgbI=
In-Reply-To: <ugg3c2$ckp0$1@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Sun, 15 Oct 2023 07:16 UTC

Am 15.10.2023 um 09:12 schrieb Bonita Montero:
> Am 15.10.2023 um 09:07 schrieb Bonita Montero:
>
>> The compiler can't ignore the calling convention since the definition
>> of the variable and the assignment might be spareate. I just printed
>> both pointer's addresses and I get different addresses. So there are
>> only two options left: either there are separate instantiations for
>> each calling convention or there's additional thunk code for each
>> calling convention that doesn't mach the standard calling convention.
>
> This are both instantiations copied from the disassembly in the
> debugger:
>
> 005F10D0 64 A1 2C 00 00 00    mov         eax,dword ptr fs:[0000002Ch]
> 005F10D6 56                   push        esi
> 005F10D7 8B 30                mov         esi,dword ptr [eax]
> 005F10D9 8B 96 04 00 00 00    mov         edx,dword ptr [esi+4]
> 005F10DF 8D 42 01             lea         eax,[edx+1]
> 005F10E2 89 86 04 00 00 00    mov         dword ptr [esi+4],eax
> 005F10E8 8D 04 0A             lea         eax,[edx+ecx]
> 005F10EB 5E                   pop         esi
> 005F10EC C3                   ret
>
> 005F10A0 55                   push        ebp
> 005F10A1 8B EC                mov         ebp,esp
> 005F10A3 64 A1 2C 00 00 00    mov         eax,dword ptr fs:[0000002Ch]
> 005F10A9 8B 08                mov         ecx,dword ptr [eax]
> 005F10AB 8B 91 04 00 00 00    mov         edx,dword ptr [ecx+4]
> 005F10B1 8D 42 01             lea         eax,[edx+1]
> 005F10B4 89 81 04 00 00 00    mov         dword ptr [ecx+4],eax
> 005F10BA 8B 45 08             mov         eax,dword ptr [a]
> 005F10BD 03 C2                add         eax,edx
> 005F10BF 5D                   pop         ebp
> 005F10C0 C2 04 00             ret         4

The symbols for both functions are ...

* `main'::`2'::<lambda_1>::<lambda_invoker_fastcall>
* `main'::`2'::<lambda_1>::<lambda_invoker_stdcall>

Re: What does this code print ?

<5OSWM.54624$tnmf.54137@fx09.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.cmpublishers.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx09.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: What does this code print ?
Newsgroups: comp.lang.c++
References: <ug54sf$1ki2m$1@dont-email.me> <87lec95n0t.fsf@bsb.me.uk> <ugaeqo$2vefi$1@dont-email.me> <ugapal$31eim$1@dont-email.me> <ugegmt$3uo8b$1@dont-email.me> <ugg33f$cf8s$3@dont-email.me>
Lines: 12
Message-ID: <5OSWM.54624$tnmf.54137@fx09.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Sun, 15 Oct 2023 14:36:49 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Sun, 15 Oct 2023 14:36:49 GMT
X-Received-Bytes: 1163
 by: Scott Lurndal - Sun, 15 Oct 2023 14:36 UTC

Bonita Montero <Bonita.Montero@gmail.com> writes:
>Am 14.10.2023 um 18:47 schrieb Richard Damon:
>
>> Can you point to any words in the standard that allows the lambda
>> expression to get "recompiled" for different calling conventions?
>
>MSVC and clang-cl do that.

So, you cannot point to any words in the standard. Noted.

Really who cares about fast call and standard call? They're
completely ignored on all modern 64-bit processors.

Re: What does this code print ?

<ugh375$jdrk$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: What does this code print ?
Date: Sun, 15 Oct 2023 18:15:34 +0200
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <ugh375$jdrk$1@dont-email.me>
References: <ug54sf$1ki2m$1@dont-email.me> <87lec95n0t.fsf@bsb.me.uk>
<ugaeqo$2vefi$1@dont-email.me> <ugapal$31eim$1@dont-email.me>
<ugegmt$3uo8b$1@dont-email.me> <ugg33f$cf8s$3@dont-email.me>
<5OSWM.54624$tnmf.54137@fx09.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 15 Oct 2023 16:15:33 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8a2f8c9bc712460c11ec71e596a58ef5";
logging-data="636788"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19rJxHoh5hi2xFxrzyWELs9r8MQC2AHvjU="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:hNsmDqlGDlVN0+4Tfg2cXSg02lg=
Content-Language: de-DE
In-Reply-To: <5OSWM.54624$tnmf.54137@fx09.iad>
 by: Bonita Montero - Sun, 15 Oct 2023 16:15 UTC

Am 15.10.2023 um 16:36 schrieb Scott Lurndal:

> So, you cannot point to any words in the standard. Noted.

If you don't like platform-specific objections don't read them.

Re: What does this code print ?

<ugh6nc$1k9qg$1@i2pn2.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!.POSTED!not-for-mail
From: rich...@damon-family.org (Richard Damon)
Newsgroups: comp.lang.c++
Subject: Re: What does this code print ?
Date: Sun, 15 Oct 2023 13:15:24 -0400
Organization: i2pn2 (i2pn.org)
Message-ID: <ugh6nc$1k9qg$1@i2pn2.org>
References: <ug54sf$1ki2m$1@dont-email.me> <87lec95n0t.fsf@bsb.me.uk>
<ugaeqo$2vefi$1@dont-email.me> <ugapal$31eim$1@dont-email.me>
<ugbqf7$19fre$3@i2pn2.org> <uge6gg$3spt4$3@dont-email.me>
<ugebv8$1gabn$2@i2pn2.org> <ugg2li$cf8s$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 15 Oct 2023 17:15:24 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="1714000"; mail-complaints-to="usenet@i2pn2.org";
posting-account="diqKR1lalukngNWEqoq9/uFtbkm5U+w3w6FQ0yesrXg";
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <ugg2li$cf8s$2@dont-email.me>
 by: Richard Damon - Sun, 15 Oct 2023 17:15 UTC

On 10/15/23 3:00 AM, Bonita Montero wrote:
> Am 14.10.2023 um 17:26 schrieb Richard Damon:
>
>> "Bonita is an Idiot" (or anything else).
>
> No, you were just frustated that you didn't know the answer
> to my initial question and wanted to discuss away the question
> with: this isn't up to the standard.

What make you say that?

Note, your initial question was malformed, as the program given was
malformed except for systems that understood a given extension to the
standard, that was not specified.

The answer that you get possible syntax error when compiled, which was
an answer given WAS the correct answer.

And, what is wrong with my answer? Since you didn't specify that your
program required a certain extension implemented in a certain way, my
implementation is just as valie.

And you are showing the limitations in your understand of the language.

Re: What does this code print ?

<ugh7b6$1k9qh$2@i2pn2.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!.POSTED!not-for-mail
From: rich...@damon-family.org (Richard Damon)
Newsgroups: comp.lang.c++
Subject: Re: What does this code print ?
Date: Sun, 15 Oct 2023 13:25:58 -0400
Organization: i2pn2 (i2pn.org)
Message-ID: <ugh7b6$1k9qh$2@i2pn2.org>
References: <ug54sf$1ki2m$1@dont-email.me> <87lec95n0t.fsf@bsb.me.uk>
<ugaeqo$2vefi$1@dont-email.me> <ugapal$31eim$1@dont-email.me>
<ugegmt$3uo8b$1@dont-email.me> <ugg33f$cf8s$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 15 Oct 2023 17:25:58 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="1714001"; mail-complaints-to="usenet@i2pn2.org";
posting-account="diqKR1lalukngNWEqoq9/uFtbkm5U+w3w6FQ0yesrXg";
User-Agent: Mozilla Thunderbird
In-Reply-To: <ugg33f$cf8s$3@dont-email.me>
Content-Language: en-US
 by: Richard Damon - Sun, 15 Oct 2023 17:25 UTC

On 10/15/23 3:07 AM, Bonita Montero wrote:
> Am 14.10.2023 um 18:47 schrieb Richard Damon:
>
>> Can you point to any words in the standard that allows the lambda
>> expression to get "recompiled" for different calling conventions?
>
> MSVC and clang-cl do that.

So, the answer is no. You are relying on an extension to the Standard,
that you didn't require. One that perhaps by the Standard, should
require a diagnostic to be conforming.

>
>> Since the lambda has no "auto" parameters, it is NOT a "generic"
>> lambda that gets recompiled under different usages, ...
>
> I didn't say that it is generic but there's an opposite analogy to
> generic lambdas that thread local and shared variables are shared
> among the different instantiations for different calling conventions.

Right, but you created "two lambdas" by using something that violates
the standard. Note "Calling Convention" isn't listed as something you
are defined to be able to overload on, so there can't actually be two
lambda functions with the same name that differ by just calling convention.

>
>> The fact that others have pointed out that when compiling for current
>> operating systems, the common compilers that understand those reserved
>> symbols point out that they are just ignored.
>
> The compiler can't ignore the calling convention since the definition
> of the variable and the assignment might be spareate. I just printed
> both pointer's addresses and I get different addresses. So there are
> only two options left: either there are separate instantiations for
> each calling convention or there's additional thunk code for each
> calling convention that doesn't mach the standard calling convention.

Even by the normal interpreation of the Standard with this extension, I
belive the lambda will be generated with the default calling convention.
The complier might then generate thunks to handle the differing
conventions. I would need to setup an environment to check this, which
isn't worth my effort.

>
>> Did you actually look at the generated code to see that it in fact DID
>> get generated twice? ...
>
> Yes, and as I said both pointers have different addresses.
>

So, you don't know what it means to look at generated code.

Just proves your limitation in knowledge of the subject.

Note, I admit when I am going on presumption and not fact, you don't
seem to know the difference. Probably because you don't understand what
is actually fact or required.

Re: What does this code print ?

<ugh7s8$1k9qh$3@i2pn2.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!.POSTED!not-for-mail
From: rich...@damon-family.org (Richard Damon)
Newsgroups: comp.lang.c++
Subject: Re: What does this code print ?
Date: Sun, 15 Oct 2023 13:35:04 -0400
Organization: i2pn2 (i2pn.org)
Message-ID: <ugh7s8$1k9qh$3@i2pn2.org>
References: <ug54sf$1ki2m$1@dont-email.me> <87lec95n0t.fsf@bsb.me.uk>
<ugaeqo$2vefi$1@dont-email.me> <ugapal$31eim$1@dont-email.me>
<ugegmt$3uo8b$1@dont-email.me> <ugg33f$cf8s$3@dont-email.me>
<ugg3c2$ckp0$1@dont-email.me> <ugg3l3$cmg4$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 15 Oct 2023 17:35:04 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="1714001"; mail-complaints-to="usenet@i2pn2.org";
posting-account="diqKR1lalukngNWEqoq9/uFtbkm5U+w3w6FQ0yesrXg";
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <ugg3l3$cmg4$1@dont-email.me>
 by: Richard Damon - Sun, 15 Oct 2023 17:35 UTC

On 10/15/23 3:16 AM, Bonita Montero wrote:
> Am 15.10.2023 um 09:12 schrieb Bonita Montero:
>> Am 15.10.2023 um 09:07 schrieb Bonita Montero:
>>
>>> The compiler can't ignore the calling convention since the definition
>>> of the variable and the assignment might be spareate. I just printed
>>> both pointer's addresses and I get different addresses. So there are
>>> only two options left: either there are separate instantiations for
>>> each calling convention or there's additional thunk code for each
>>> calling convention that doesn't mach the standard calling convention.
>>
>> This are both instantiations copied from the disassembly in the
>> debugger:
>>
>> 005F10D0 64 A1 2C 00 00 00    mov         eax,dword ptr fs:[0000002Ch]
>> 005F10D6 56                   push        esi
>> 005F10D7 8B 30                mov         esi,dword ptr [eax]
>> 005F10D9 8B 96 04 00 00 00    mov         edx,dword ptr [esi+4]
>> 005F10DF 8D 42 01             lea         eax,[edx+1]
>> 005F10E2 89 86 04 00 00 00    mov         dword ptr [esi+4],eax
>> 005F10E8 8D 04 0A             lea         eax,[edx+ecx]
>> 005F10EB 5E                   pop         esi
>> 005F10EC C3                   ret
>>
>> 005F10A0 55                   push        ebp
>> 005F10A1 8B EC                mov         ebp,esp
>> 005F10A3 64 A1 2C 00 00 00    mov         eax,dword ptr fs:[0000002Ch]
>> 005F10A9 8B 08                mov         ecx,dword ptr [eax]
>> 005F10AB 8B 91 04 00 00 00    mov         edx,dword ptr [ecx+4]
>> 005F10B1 8D 42 01             lea         eax,[edx+1]
>> 005F10B4 89 81 04 00 00 00    mov         dword ptr [ecx+4],eax
>> 005F10BA 8B 45 08             mov         eax,dword ptr [a]
>> 005F10BD 03 C2                add         eax,edx
>> 005F10BF 5D                   pop         ebp
>> 005F10C0 C2 04 00             ret         4
>
> The symbols for both functions are ...
>
> * `main'::`2'::<lambda_1>::<lambda_invoker_fastcall>
> * `main'::`2'::<lambda_1>::<lambda_invoker_stdcall>
>

So, two wrappers for the same function. just different instances of the
invoking of it, not two different "instances" of the lambda function.

Re: What does this code print ?

<ugh7se$1k9qh$4@i2pn2.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!.POSTED!not-for-mail
From: rich...@damon-family.org (Richard Damon)
Newsgroups: comp.lang.c++
Subject: Re: What does this code print ?
Date: Sun, 15 Oct 2023 13:35:10 -0400
Organization: i2pn2 (i2pn.org)
Message-ID: <ugh7se$1k9qh$4@i2pn2.org>
References: <ug54sf$1ki2m$1@dont-email.me> <87lec95n0t.fsf@bsb.me.uk>
<ugaeqo$2vefi$1@dont-email.me> <ugapal$31eim$1@dont-email.me>
<ugegmt$3uo8b$1@dont-email.me> <ugg33f$cf8s$3@dont-email.me>
<ugg3c2$ckp0$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 15 Oct 2023 17:35:10 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="1714001"; mail-complaints-to="usenet@i2pn2.org";
posting-account="diqKR1lalukngNWEqoq9/uFtbkm5U+w3w6FQ0yesrXg";
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <ugg3c2$ckp0$1@dont-email.me>
 by: Richard Damon - Sun, 15 Oct 2023 17:35 UTC

On 10/15/23 3:12 AM, Bonita Montero wrote:
> Am 15.10.2023 um 09:07 schrieb Bonita Montero:
>
>> The compiler can't ignore the calling convention since the definition
>> of the variable and the assignment might be spareate. I just printed
>> both pointer's addresses and I get different addresses. So there are
>> only two options left: either there are separate instantiations for
>> each calling convention or there's additional thunk code for each
>> calling convention that doesn't mach the standard calling convention.
>
> This are both instantiations copied from the disassembly in the
> debugger:
>
> 005F10D0 64 A1 2C 00 00 00    mov         eax,dword ptr fs:[0000002Ch]
> 005F10D6 56                   push        esi
> 005F10D7 8B 30                mov         esi,dword ptr [eax]
> 005F10D9 8B 96 04 00 00 00    mov         edx,dword ptr [esi+4]
> 005F10DF 8D 42 01             lea         eax,[edx+1]
> 005F10E2 89 86 04 00 00 00    mov         dword ptr [esi+4],eax
> 005F10E8 8D 04 0A             lea         eax,[edx+ecx]
> 005F10EB 5E                   pop         esi
> 005F10EC C3                   ret
>
> 005F10A0 55                   push        ebp
> 005F10A1 8B EC                mov         ebp,esp
> 005F10A3 64 A1 2C 00 00 00    mov         eax,dword ptr fs:[0000002Ch]
> 005F10A9 8B 08                mov         ecx,dword ptr [eax]
> 005F10AB 8B 91 04 00 00 00    mov         edx,dword ptr [ecx+4]
> 005F10B1 8D 42 01             lea         eax,[edx+1]
> 005F10B4 89 81 04 00 00 00    mov         dword ptr [ecx+4],eax
> 005F10BA 8B 45 08             mov         eax,dword ptr [a]
> 005F10BD 03 C2                add         eax,edx
> 005F10BF 5D                   pop         ebp
> 005F10C0 C2 04 00             ret         4
>
>

Which is also consistant with a single definition that was inline
expanded at the two assignment sites

Thus it isn't that you got "two different lambda" with different calling
convention refencing the same variable, but you have ONE lambda, that is
inlined twice with different wrappers to handle calling convention, that
since it is the same function being called, of course share the common
variable (as is required anytime an inline function is used).

Re: What does this code print ?

<ughg3b$m6i2$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: What does this code print ?
Date: Sun, 15 Oct 2023 12:55:23 -0700
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <ughg3b$m6i2$1@dont-email.me>
References: <ug54sf$1ki2m$1@dont-email.me> <87lec95n0t.fsf@bsb.me.uk>
<ug66v8$21ehl$1@news.xmission.com> <ug6lk8$1ur0k$2@dont-email.me>
<ugbq8q$19fre$2@i2pn2.org> <uge6f5$3spt4$2@dont-email.me>
<ugebv3$1gabn$1@i2pn2.org> <ugg350$cf8s$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 15 Oct 2023 19:55:23 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1df133f4aa7b10bbd0ab414963adfc2d";
logging-data="727618"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/bHVqFN/zfdHg2NFpfIT8duaFFs16Gajo="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:HROpLvxDAddcq8VOhlqdeNbGURc=
In-Reply-To: <ugg350$cf8s$4@dont-email.me>
Content-Language: en-US
 by: Chris M. Thomasson - Sun, 15 Oct 2023 19:55 UTC

On 10/15/2023 12:08 AM, Bonita Montero wrote:
> Am 14.10.2023 um 17:26 schrieb Richard Damon:
>
>> Who said I didn't understand it.
>
> You're a nerd and I know nerds.

Huh? That is a very odd thing to say even for a naive troll. Okay Bonita
The Beautiful Woman. Are you like the cruel puppet for real? The only
way to defend yourself is with mental straining. Are you the real one?

https://www.thezorklibrary.com/history/cruel_puppet.html

___________________
Few creatures are more despised than the cruel puppet, one which uses
its power not for good, evil or profit, but simply to hurt people's
feelings. Staunch monarchs have been reduced to tears by these merciless
shapeshifters; for it attacks by twisting itself into unflattering
caricatures of its opponents, accompanied by jeers, rude noises and
shocking accusations--which include the recital of nightly personal
habits in excruciating detail, accusing its adversary's mother of
shocking improprieties, reminding of weight gain, etc. They have also
been known to practice existential put downs. "You're so ugly you're
probably the creation of an unseen master who is controlling and shaping
the world around you. Nothing is real and nothing you do will have any
lasting effect on those around you. Welcome to the dark night of your
soul" is but one example. More often, however, they just insult your
knees. Insulting the cruel puppet in return is futile, for it feeds off
of them. Straining to ignore these verbal attacks is the only known defense.

Residents of Gurth City were warned during the mid-tenth century to keep
away from the Forest of Youth, as it was known home to cruel puppets.

During the Great Monster Uprising of the Second Age of Magic, cruel
puppets were reported in the following regions: The abandoned Casino of
Port Foozle, The Southern Wastes, The Coast Road near Borphee, Pheebor,
Forest of Youth, Gurth Woodland Trail, the Lost Castle of Y'Syska, Crab
Island, Egreth Castle, The Glass Maze, Bozbarland, Largoneth Castle, and
the G.U.E. Tech Training Grounds in the Ethereal Plane of Atrii. Many
perched in trees and other high and covert corners, raining handfuls of
exploding chestnuts down upon luckless adventurers.
___________________

Re: What does this code print ?

<ugi6jr$ulpp$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: news.x.r...@xoxy.net (Richard Damon)
Newsgroups: comp.lang.c++
Subject: Re: What does this code print ?
Date: Sun, 15 Oct 2023 22:19:40 -0400
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <ugi6jr$ulpp$1@dont-email.me>
References: <ug54sf$1ki2m$1@dont-email.me> <87lec95n0t.fsf@bsb.me.uk>
<ug66v8$21ehl$1@news.xmission.com> <ug6lk8$1ur0k$2@dont-email.me>
<ugbq8q$19fre$2@i2pn2.org> <uge6f5$3spt4$2@dont-email.me>
<ugebv3$1gabn$1@i2pn2.org> <ugg350$cf8s$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 16 Oct 2023 02:19:40 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="66984787b86a81ec226e0e2a16a9adef";
logging-data="1005369"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18A2hre4tllMtPI2/9EbObb2/EdfacKGj4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Toa4qz+voMlquuSNdw14zVUX+qM=
Content-Language: en-US
In-Reply-To: <ugg350$cf8s$4@dont-email.me>
 by: Richard Damon - Mon, 16 Oct 2023 02:19 UTC

On 10/15/23 3:08 AM, Bonita Montero wrote:
> Am 14.10.2023 um 17:26 schrieb Richard Damon:
>
>> Who said I didn't understand it.
>
> You're a nerd and I know nerds.

So, you are wrong, but can't admit it.

Re: What does this code print ?

<ugi6q6$ulpp$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: news.x.r...@xoxy.net (Richard Damon)
Newsgroups: comp.lang.c++
Subject: Re: What does this code print ?
Date: Sun, 15 Oct 2023 22:23:02 -0400
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <ugi6q6$ulpp$2@dont-email.me>
References: <ug54sf$1ki2m$1@dont-email.me> <87lec95n0t.fsf@bsb.me.uk>
<ugaeqo$2vefi$1@dont-email.me> <ugapal$31eim$1@dont-email.me>
<ugegmt$3uo8b$1@dont-email.me> <ugg33f$cf8s$3@dont-email.me>
<5OSWM.54624$tnmf.54137@fx09.iad> <ugh375$jdrk$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 16 Oct 2023 02:23:02 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="66984787b86a81ec226e0e2a16a9adef";
logging-data="1005369"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+lj81FI9w9QqsCHz6PgofSle6EtG+qxQ8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:LYl+soFXxdKsJccaUTveN7jtCZg=
In-Reply-To: <ugh375$jdrk$1@dont-email.me>
Content-Language: en-US
 by: Richard Damon - Mon, 16 Oct 2023 02:23 UTC

On 10/15/23 12:15 PM, Bonita Montero wrote:
> Am 15.10.2023 um 16:36 schrieb Scott Lurndal:
>
>> So, you cannot point to any words in the standard.  Noted.
>
> If you don't like platform-specific objections don't read them.
>
>
If making platform-specific question, mention the platform, or better,
post it in the platform specific group.

Platform specific code, when not restricted to the platform, is often
undefined in the more general world.

Re: What does this code print ?

<ugl76a$2pe6u$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!usenet.network!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: What does this code print ?
Date: Tue, 17 Oct 2023 07:47:54 +0200
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <ugl76a$2pe6u$1@dont-email.me>
References: <ug54sf$1ki2m$1@dont-email.me> <87lec95n0t.fsf@bsb.me.uk>
<ugaeqo$2vefi$1@dont-email.me> <ugapal$31eim$1@dont-email.me>
<ugbqf7$19fre$3@i2pn2.org> <uge6gg$3spt4$3@dont-email.me>
<ugebv8$1gabn$2@i2pn2.org> <ugg2li$cf8s$2@dont-email.me>
<ugh6nc$1k9qg$1@i2pn2.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 17 Oct 2023 05:47:54 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="58032372cf3bef9fbab18d712d3e9ed9";
logging-data="2930910"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+lrYhsX6yHSMLy/s5s6zXUapfR0AZAjhQ="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:wmecH9iFiQBK38PtbyxVyGILzsE=
Content-Language: de-DE
In-Reply-To: <ugh6nc$1k9qg$1@i2pn2.org>
 by: Bonita Montero - Tue, 17 Oct 2023 05:47 UTC

Am 15.10.2023 um 19:15 schrieb Richard Damon:

> What make you say that?

I know nerds.

Rest unread.


devel / comp.lang.c++ / Re: What does this code print ?

Pages:123456
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor