So, according to the C++ grammar, it sure seems like for(some_struct X = {a, b, c}; ...) should work. MSVC is just plain broken I guess?
-
-
-
Replying to @HookTM
@GrumpyHook@cmuratori No compiler adheres to the spec. That's why we all use tiny subsets of C, like not initializing crap in random places2 replies 0 retweets 0 likes -
Replying to @tweets_dan
@gunvulture
@GrumpyHook Declaring a variable in a for loop is really important for macros; it's not like some super esoteric thing...3 replies 0 retweets 0 likes -
Replying to @cmuratori
@cmuratori @gunvulture@GrumpyHook why not do the do...while thing to get a new scope, and declare the loop variable there, outside the for?1 reply 0 retweets 0 likes
Replying to @tom_seddon
@tom_seddon @gunvulture @GrumpyHook 'cause it doesn't work in a macro. Ie., you want to be able to make ForEach(some_container) {...}
5:32 PM - 30 May 2013
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.