Message from C, C++ talks

July 2019

— They're not used for everything, but if you think your function is quite simple, just mark it as constexpr and the compiler will execute at compile time everytime it can

Message permanent page

— A lot of work for like fifth example after hello world

— It's not that difficult. You just want to know EVERYTHING, which isn't really necessary

— > mark them as contexpr and wait for the compiler to tell me what's wrong and adapt as I go
That's a way actually. But what we want them to learn is const. And slapping constexpr everywhere explains neither const nor constexpr

Message permanent page


I admit I may've crossed a line, but I do think every single word in a program should be clear to one who writes it, especially if one learns a language

— Isn't the keyword constexpr clear enough to you?

— It's clear as a term, but not it's usages and restrictions

— Like, with C++20 we will be able to do constexpr funcs virtual and have try blocks inside

— There are similar differences in 11/14

— There's few restrictions. An important one is that the code can't invoke undefined behaviour, which is pretty sensible

Message permanent page

— Hey guys , is there a way to buggy a directory list crawler in c++?

— What?

— I coded a a function to find all files , directories , and sub directories with its files , but at the moment to change it to D: second hard drive it skips some folders

Message permanent page


D:\\blackleitus\Videos\movies\No Reservations (2007) [BluRay] [720p] [YTS.AM]\No.Reservations.2007.720p.BluRay.x264-[YTS.AM].mp4
D:\\blackleitus\Videos\movies\No Reservations (2007) [BluRay] [720p] [YTS.AM]\No.Reservations.2007.720p.BluRay.x264-[YTS.AM].srt


Volume in drive D is Bk-Storage
Volume Serial Number is 7AC4-6C0A

Directory of D:\

06/30/2019 12:30 AM 1,346 poc.c
06/30/2019 12:30 AM 210 things.txt
05/30/2019 04:45 PM <DIR> blackleitus
2 File(s) 1,556 bytes
1 Dir(s) 961,850,376,192 bytes free

D:\>cd blackleitus

Volume in drive D is Bk-Storage
Volume Serial Number is 7AC4-6C0A

Directory of D:\blackleitus

05/30/2019 04:45 PM <DIR> .
05/30/2019 04:45 PM <DIR> ..
05/27/2019 11:33 PM <DIR> Documents
05/22/2019 07:54 AM <DIR> Pictures
05/22/2019 12:56 PM <DIR> Music
04/25/2019 11:07 PM <DIR> Videos
0 File(s) 0 bytes
6 Dir(s) 961,850,376,192 bytes free

Message permanent page

— This is what I am talking about