olli
N1570 6.7.6.2 defines arrays let's read it
Alignant
should compile on a C11 compiler
It says that variable length arrays are a part of C99 standard, but not a part of C++ standard. At least not in C++11 standard
https://stackoverflow.com/questions/1887097/why-arent-variable-length-arrays-part-of-the-c-standard
But GCC still supports it because... magic.
I didn't know that
BinaryByter
olli
Btw C does not enforce implementation of variable length arrays but does allow it
BinaryByter
you can do it in C
Alignant
Maybe the reason is that GCC has both C and C++ compilers, and microsoft only supports C++
olli
Alignant
You can't do VSA in MSVC C++ compiller
Alignant
I wander why :D
olli
Alignant
Variable size array
Alignant
Or variable length array
Alignant
The proper term is VLA, I believe
olli
I wander why :D
The official term is the later one
Vendors are not enforced to support VLA
Alignant
Which means that some code may be not cross platform because of this small issue? That's sick
olli
"Variables length arrays are a conditional feature that implementations need not to support" N1570 6.7.6.2.4
olli
Alignant
I probably didn't know that because I didn't use C-arrays for some time
BinaryByter
BinaryByter
those suckers
Dima
microsux indeed
Dima
lol not even c99
Alignant
C++ standards are ambiguous, lol
Alignant
I bet microsoft exploits it :D
Dima
explodes it
Mat
Is it what i think?
olli
Alignant
"Minecraft Recipes For Dummies"
Lol, they've made a book of it
Mat
/warn no illegal books
Marie
Warn removed by クリミ.
Anonymous
😂
Dima
2/3 lol
Dima
well well well
Dima
lol couldn’t read too
Alignant
Will the third warn result in a permanent ban? :D
olli
Alignant
Do you compare yourself to Jesus?
BinaryByter
why did they?
olli
Stop - political or religious topics are forbidden
Dima
here you go third warn
Alignant
Loool 😂
BinaryByter
/varn yes
BinaryByter
lol jkjk
Alignant
Alignant
You're playing with a certain fire you know
BinaryByter
the guy whose mother got pregnant without fucking her husband?
BinaryByter
Alignant
BinaryByter
anyway, let's go back to drawing :D
olli
No
olli
You're basically asking to get banned
olli
So what? You break into houses and steal from the rich?
Alignant
We're programmers, we're rich mudafakas, yolo swag
olli
Furthermore this is #offtopic
Alignant
I'm bored with your books issue
@linuxer4fun, remind me why you criticize C. It's not a common sight, you know
BinaryByter
BinaryByter
that's the TL;DR
Alignant
Some would say(I'm not saying I agree with it) that some C++ features are lame and cause more trouble, than benifit 😉
Alignant
C-arrays are wonderful.
Ariana
c arrays and c++ arrays have a diff?!?
Ariana
oh
Ariana
I see arrays as p+index still xd
olli
or because you understand the idea of randon access and continuous memory regions
Ariana
Or really cuz i do too much assembly xd
lea eax [ebp-0x20]
Ariana
But then memory corruption :>
Anonymous
What is malloc
Ariana
googled?
Ariana
What did you not understand
Anonymous
OK got it memory allocation 😂
BinaryByter