20 years of C code, and I never knew its block scope rather than function scope. Now need to forget this new knowledge and return to sanity
-
-
Replying to @ColumPaget
when you get done with that i have a bell i need unrung
1 reply 0 retweets 0 likes -
Replying to @chaosprime
that guy in Pi managed to do it? I can't have this in my head, or I'll start putting variables in stupid places 'because I can'
1 reply 0 retweets 1 like -
Replying to @ColumPaget
stupid places meaning "the actual scope they're needed in instead of a whole function for no reason"?
2 replies 0 retweets 0 likes -
Replying to @chaosprime
could have it's uses: e.g. put same var name in two sub-blocks of the same function to create heisenbugs and gaslight QA team.
1 reply 0 retweets 2 likes -
-
Replying to @chaosprime @ColumPaget
a decent compiler will warn on scope masking though
1 reply 0 retweets 0 likes -
Replying to @chaosprime
curses! I would have gotten away with it if it weren't for those meddling compile warnings!
1 reply 0 retweets 1 like
Replying to @ColumPaget
jinkies, it was Old Man Kernighan all along
10:35 AM - 17 Aug 2016
0 replies
0 retweets
1 like
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.