Anonymous
Use a memory safe language to accept input
Anonymous
Sanitize and process that input correctly
Dima
/warn
/warn command abuse
Anonymous
And then send it to the memory unsafe language
Anonymous
Anonymous
No
explain a bit?
Anonymous
C is actually safer in that regard than C++
Shreyash
Shreyash
In c++
Anonymous
boost.asio
google this
Shreyash
Anonymous
Is it possible or not?
Like, python is implemented in C and its possible in python so why wouldn't it be in C++
Shreyash
Like, python is implemented in C and its possible in python so why wouldn't it be in C++
I tried much time in python, I just waste my time and brain in python
Shreyash
The reason is that python is newly for me
Anonymous
Shreyash
Anonymous
I will offend many people now but C++ is a terrible language
Shreyash
I have to just refer a few word and function then I would start it again
Anonymous
That moment when your language needs to spit out a 2mb error log for a missing semicolon
Anonymous
You know it's a mess
Anonymous
Anonymous
Anonymous
I simply don't care enough about C++, would rather do it in C
Shreyash
Mizdx
Anonymous
@Neko_cpp dima are you there?
Anonymous
hi, ask her about your problem and it'll help you.
Shreyash
Sure
toytta
Hey people. C Language I'm trying to print the first element of and array (arr[0]) but instead is coming the second element (arr[1]). Does anyone know what might be the problem?
Dima
oopsie
Dima
gotta ban you
Dima
/ban 668401387 fuck off
Anonymous
what did i miss
klimi
some .... dude
Dima
classic
Mar!o
Mar!o
Stop scaring me 😂
Mar!o
MᏫᎻᎯᎷᎷᎬᎠ
That moment when your language needs to spit out a 2mb error log for a missing semicolon
That's your definition of terrible language?! People just don't wanna learn it so they spit on it 90% the line you dissed C++ is processed by a C++ code
Anonymous
That doesn't make it any less terrible
MᏫᎻᎯᎷᎷᎬᎠ
Btw Missing semicolon generates 3-5 lines
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
Better than getting something weird while your software in production in front of the the client Embarrassing
Prosvetlennii Dimas
I have a class that need to load data to it and i want to add it to a vector. What is the best way to add it without making copy?
Dima
store a reference?
Leo
store a smart pointer?
Prosvetlennii Dimas
if i store reference will it free after vector destruction?
Prosvetlennii Dimas
I googled smart pointers. Thx
Anonymous
But what is the code like?
Anonymous
Okay
Prosvetlennii Dimas
Anonymous
@Neko_cpp
Larry
Hello all, I am Larry
Mar!o
Hi
klimi
Hello all, I am Larry
Hi Larry, what brings you here? Be sure to answer so you won't be marked as suspicious account
crt
std::vector<class&>?
crt
hm
crt
std::vector<class*>
crt
then vec.push_back(&class)
Anonymous
functional programming in c++ ivan cukic
Anonymous
can anybody share this book?
Anonymous
functional programming in c++ ivan cukic
Ludovic 'Archivist'
But you can increment a pointer to a pointer to void because a pointer to void is a complete type even if void is not
Ludovic 'Archivist'
Late to the party I am
Ludovic 'Archivist'
Yeah I read that after I kept scrolling
Anonymous
can anybody share this book?
https://www.manning.com/books/functional-programming-in-c-plus-plus
Whistleblower
Do we have void **ptr in C . I don't know and have never used . Please throw some light on this .