Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
theNox92717yYou can set flags to let it support you a bit, but it's how you said: The compiler expects you to be a 'grown up' means you know what you do
-
Voxera113887yAn array in c ad i think in c++ is more or less just syntactic sugar for a pointer and an offset which is the index multiplied with the size of the data structure.
Size is only a concept when its instantiated, its not stored and hence cannot be checked. -
donuts236687y@Voxera but apparently the new C++ you can for (x : array) I think.... So it has to know something about it...
wow... no kidding.... so C++ is like a language without a compiler holding ur hands and catching u when u screw up...
rant