Timeline for Are file-scope `static` variables in C as bad as `extern` global variables?
Current License: CC BY-SA 3.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 8, 2021 at 9:35 | comment | added | SO_fix_the_vote_sorting_bug | But in all seriousness, if someone else wants to waltz in and extern your private variable, let 'em have at it. When stuff breaks and becomes a mess on their end, kindly show them a well-worded disclaimer about "at your own risk" and all that. And to be pedantic, I could probably find a way to grab a pointer to a C++ object and offset my way to the private section. If I'm doing that I probably deserve whatever comes out the other end. Probably. | |
| Aug 28, 2015 at 18:03 | vote | accept | CommunityBot | ||
| Aug 27, 2015 at 17:50 | history | answered | user22815 | CC BY-SA 3.0 |