Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
Is C99 the final C?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Arthur J. O'Dwyer, post: 1690303"] const int foo = 5; char arr[foo]; Legal C++ (because in C++, const objects are really "constant"), but illegal C (because 'foo' is an object whose value needn't be stored [or even computed] at compile time). I think C's way is easier for me to grasp. And I think (but this is just IMH and uneducated O) that C++ compilers need a lot of extra baggage to deal with constant "consts," and I wouldn't want to foist all that on C compilers. Ooh, that would just be ugly and mean. ;) Except possibly for flavors of 'char', why would anyone want to walk over all values of a type anyway? Solving equations by exhaustive search? ;-) -Arthur [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Is C99 the final C?
Top