Telegramy
Articles
About
« Rev
@programminginc
861
Fwd »
Anonymous
https://isocpp.org/ they make all standards open
olli
Okay then get the final c++17 for me please
@oleg
using the expressif toolset?
Arduino based on expressif.. I don't..
Anonymous
Okay then get the final c++17 for me please
nevermind i was wrong
Anonymous
and secondly it is not 12.3.1 if you read the code it is 12.3.3
Anonymous
which is NOT an anonymous union
Anonymous
notice that result is written after the union definition
Anonymous
union { uint32_t u32; uint8_t u8[4]; } result;
Anonymous
Arduino based on expressif.. I don't..
then how do you compile the xtensa code?
olli
and secondly it is not 12.3.1 if you read the code it is 12.3.3
In which document?
Anonymous
In which document?
your same document
Anonymous
olli
Where is that?
Anonymous
Where is that?
12.3.3
Anonymous
literally 2 underneath the one you said
Anonymous
@oleg
then how do you compile the xtensa code?
I press the button in arduini ide)
olli
That's not 12.3 in my document
Anonymous
my bad 12.3.1.3
Anonymous
12.3.1
Anonymous
line 3
olli
Sorry no wifi ...
klimi
Yo
Anonymous
Sorry no wifi ...
go to 12.3.1
Anonymous
anonymous unions
olli
Oh damn - sorry
Anonymous
olli
I was talking about par 1 in 12.3
klimi
I love when Dad is yelling at windows 10 notification from google chrome from random porn site to close it up and let him be
Anonymous
just look at 12.3.1 then
klimi
He called me to help so I yelled at new Google chrome settings
Anonymous
and then paragraph 3
BinaryByter
I love when Dad is yelling at windows 10 notification from google chrome from random porn site to close it up and let him be
your dad is an honorable man
Anonymous
it will show you exactly that it is fine
olli
and then paragraph 3
But it has nothing to do with anonymous
klimi
your dad is an honorable man
Sure but I don't get the chains
klimi
And the sites that keeps popping you up with notifications
Anonymous
But it has nothing to do with anonymous
it is an anonymous function as the union has no name
BinaryByter
And the sites that keeps popping you up with notifications
tell him to share his porn
BinaryByter
like a real comrad would
klimi
tell him to share his porn
It was not certainly porn it was that kind of stuff Lucy wants to meat with you and boobs pic
Anonymous
they show this code as ok
BinaryByter
It was not certainly porn it was that kind of stuff Lucy wants to meat with you and boobs pic
'meat' is amongst my favorite typos xD
olli
they show this code as ok
This code does no punning
Anonymous
This code does no punning
?
Anonymous
what?
klimi
'meat' is amongst my favorite typos xD
It was not typo
olli
?
The problem is, in a union at most one element can be active at a time, correct?
Anonymous
The problem is, in a union at most one element can be active at a time, correct?
you can only read from 1 element at a time yes
Anonymous
or write to only one
Anonymous
which this does
olli
you can only read from 1 element at a time yes
C++ only allows you to read the element you wrote to, expect they share an initial sequence
olli
u32 and u8 don't share an initial sequence
olli
You wrote to u8 , so u8 is active
Anonymous
? it is uint8_t *
olli
Reading from u32 is UB
Anonymous
with 4
Anonymous
it is uint8_t u8[4];
Anonymous
this is an array of size 4
Anonymous
the sizes match
Anonymous
the size of this union is still 4 bytes
Anonymous
if he did not have the [4] i would agree
Anonymous
I press the button in arduini ide)
ok do you have this file https://github.com/espressif/arduino-esp32/blob/master/tools/sdk/include/wpa_supplicant/endian.h
Mihail
then how do you compile the xtensa code?
You just need to install the bsp or whatever
Mihail
That'll set up everything for him
Anonymous
to change from little to big you need a command line argument
Anonymous
i just use the gnu tools
Anonymous
?
Anonymous
this is class members
Anonymous
not unions
olli
this is class members
A union is a class type
olli
That's the link from the union section
Anonymous
it is not
Anonymous
which page is that
olli
"A union is a class defined ..."
olli
Section 12
Anonymous
ya that is not the union section
olli
"A union is a class defined ..."
^
Anonymous
"A union is a class defined ..."
where?
Anonymous
i do not see this
« Rev
@programminginc
861
Fwd »