Anonymous
Depends how you use it...
MᏫᎻᎯᎷᎷᎬᎠ
Imagine the same programming language you master is being studied to children in school
Anonymous
Python is good for different type of projects.
Anonymous
Python actualy is just scripting...
Anonymous
LOL
Talula
JavaScript is a script, python is like ehn... it's not even as complex as JavaScript
Anonymous
Javascript aint complex if you understand.. i feel like python is more complex because its stupidly easy that you start doubting yoself...
Talula
Javascript aint complex if you understand.. i feel like python is more complex because its stupidly easy that you start doubting yoself...
JavaScript isn't complex and that is the point Python is easier than JavaScript... it's annoying..
Dima
both languages are trash
klimi
I like both
itsmanjeet
Unable to free variable
Dima
lmao
itsmanjeet
😅😂
BinaryByter
BinaryByter
😏
klimi
Hewwo Maxi
itsmanjeet
Unable to free variable
char* msg = "new pointer"; free (msg); its also failed
Talula
Word Maxi triggers a song in my head for some reason.
BinaryByter
why the ""?
klimi
why the ""?
It's a string
BinaryByter
exactly
Dima
gg free'in strings
Talula
Maxi Bieber
https://www.youtube.com/watch?v=djV11Xbc914
BinaryByter
invidous please
Dima
https://www.youtube.com/watch?v=djV11Xbc914
why would that trigger your brain, I like this song btw
itsmanjeet
Sry for dump question
Talula
Sry for dump question
Oh please don't dump here... 😆
Anonymous
👍
Anonymous
Anonymous
klimi
Wtf
klimi
Welcome
Anonymous
Hii
MᏫᎻᎯᎷᎷᎬᎠ
Hi
Anonymous
Thank you Rose
klimi
You're welcome
Anonymous
Ok
🐰🐾 سمیه
Can anyone please explain this section to me?
Dani
amazing! that was... magic?
klimi
No, admin power
Dani
So Rose's msg just was a confirmation of the deletion I guess, right?
klimi
Yes
Dani
In any case, that book is expensive. But worth buying it, even if it's just for reference.
Dani
(and If the compiler won't stop getting on the way, you can use the book to attack your boss or whoever you have around)
klimi
Heh
Michael
Did you uninstall something or did you finished the movie
Michael
Oops
Dani
How do I iterate over a vector of unique ptrs? something like this:
Dani
std::vector<std::unique_ptr<Sprite>> sprites;
Dani
I'm asking because this won't compile:
Dani
for(std::unique_ptr<Sprite> sprite: sprites){
Dani
I guess I have to std::move it somewhere?
Dani
Oh, I've found it. I have to use references, otherwise it tries to make a copy of the unique_ptr.
MᏫᎻᎯᎷᎷᎬᎠ
What is the compiler errors?!
Dani
error: use of deleted function ‘std::unique_ptr<_Tp, _Dp>::unique_ptr(const std::unique_ptr<_Tp, _Dp>&) [with _Tp = Sprite; _Dp = std::default_delete<Sprite>]’ for(std::unique_ptr<Sprite> sprite: sprites){
GOURAV
/
Dani
Gcc compiler errors are esoteric (deleted function??)
Dima
what the..
Dima
no
Dima
Francisco
Francisco
Just iterate by reference, not by copy
Dima
read the rules
Dima
before asking such stuff
Dima
you'll get a warn next time
GOURAV
Hehe
Francisco
for(auto & sprite : sprites)
Or for(const auto & sprite : sprites) if you want const references
Francisco
The problem is that unique_ptr is not copyable
GOURAV
👆👆👆👆
Dima
👆👆👆👆
/warn read the rules
Dima
I told ya
Dani
Thanks Francisco, you're correct. I just tend forget to use references when passing stuff around 😊
klimi
Wheeew