Dima
Nah it’s okay
Dima
rare developer type though
klimi
You're right :)
Artöm
Do you know the difference between direct-list-init and copy-list-init?
Artöm
Yes https://en.cppreference.com/w/cpp/language/list_initialization
Artöm
Copy-init cant call explicit ctors
SK
SK
Nice!
Anonymous
English only lol
SK
Ok
Anonymous
Anyone know how to run graphics programs on Android?
Dima
lol
Anonymous
pastebin got deleted :/
Anonymous
Hello. I'm writing simple scripting language interpreter using computed goto's Code is like this (pastebin id = vzMsrg2j) Is it possible to make labels visible from other functions? I want to have separate function to init label address table to keep code cleaner and not have to check if at every call ?
Dima
pastebin got deleted :/
your message: “Hello. I'm writing simple scripting language interpreter using computed goto's Code is like this https://pastebin.com/vzMsrg2j Is it possible to make labels visible from other functions? I want to have separate function to init label address table to keep code cleaner and not have to check if at every call ?”
Dima
lol
Anonymous
/report
Anonymous
I really need to stay up to date with this chat
Mar!o
Is it possible and well defined to store and read an unsigned int inside a signed int via type punning like: int a = *(unsigned*)&b?
Mar!o
In C not C++
Mar!o
And should I use pointers or unions for that?
Igor🇺🇦
Is it possible and well defined to store and read an unsigned int inside a signed int via type punning like: int a = *(unsigned*)&b?
You don't need to use any pointers, you can use regular casting. You may loose your value if your uint is larger than INT_MAX. int will overflow and you'll get a negative number
Anonymous
Hello is it possible to have an datatype public float[][] data; in C++
Anonymous
https://i.imgur.com/y6eLUt5.png
Anonymous
Array has an incomplete element type float[]
Anonymous
At the point of defining it i don't know the size yet, As that will be provided in the Constructor
Anonymous
How would i do this in a vector?
Anonymous
How would i do this in a vector?
What exactly don't you understand?
Francisco
You want a float **data; and then call malloc for every pointer (if you're in C), or just use std::vector<std::vector<float>>> data; (if you're in C++)
Daniele
At the point of defining it i don't know the size yet, As that will be provided in the Constructor
there are no dynamic arrays in C, you need to call malloc when you know the size
Anonymous
there are no dynamic arrays in C, you need to call malloc when you know the size
It is C++ We don't need your mallocs and other shit
Anonymous
C++ fanboy detected
Mostly hater of C
Daniele
It is C++ We don't need your mallocs and other shit
he never told us what's the programming language actually, did he?
Daniele
no wait
Dima
C++ with c is the best
Daniele
I'm blind
Dima
Aka c with classes
Crush_my_love
Mostly hater of C
Being hater of something is part of inadequacy too. Btw this chat is about C and C++. And i'm not sure why you raise this holywar here.
Anonymous
he never told us what's the programming language actually, did he?
https://t.me/programminginc/261183 You can detect what lang it is by this message
Crush_my_love
For example i like both
Crush_my_love
C and C++ botu useful instruments for me.
Crush_my_love
Most C++ language problems are because of C backwards compatibly
Nah. I like this tbh. I dont see this as a problem.
Crush_my_love
I never saw that someone using goto in C in general.
Anonymous
goto cleanup; is usual pattern for cleaning resources in C
Ибраги́м
Most C++ language problems are because of C backwards compatibly
And that's where it's popularity comes from too. Being able to do C in C++ without any trick is what made C++ popular
Ибраги́м
Other languages either have bindings
Ибраги́м
Have limited C interaction
Crush_my_love
goto cleanup; is usual pattern for cleaning resources in C
Well, i'm not yet such experienced to tell you about this. I'm just notice that you are very argumentative over other languages than C++
Anonymous
I understand this, of course
Just don't like this But I know that it couldn't be other way
Ибраги́м
He's not shooting u because of it
Crush_my_love
Anonymous
I know C++ problems, I'm not fanatic of it
Ибраги́м
More looks like fanatism for me
He's not punching your face or forcing u to accept his statements
Anonymous
I write in other languages such as C#, Java
Crush_my_love
He's not punching your face or forcing u to accept his statements
Well, i expect that if we will stand in the same room he would try it lmao
Ибраги́м
Well, i expect that if we will stand in the same room he would try it lmao
Now this is stupid. You don't put people in prison cos u think they're gonna steal.
Ибраги́м
Hey, execute that guy, I think he's going to rape me if were ever together
Ибраги́м
That's cynical
Crush_my_love
Now this is stupid. You don't put people in prison cos u think they're gonna steal.
C'mon i didnt even try it. Stop using this strawman logic against me
Ибраги́м
Well, i expect that if we will stand in the same room he would try it lmao
Now do a reverse, put him in your place and you his place and let's see how enjoyable it is
Anonymous
#ot
Dima
Now this is stupid. You don't put people in prison cos u think they're gonna steal.
Well in russia you get in prison for thinking differently 😹😹😹😹