Everything declared in the main, everything shared. Simple.
Everything encapsulated, nothing shared, everything referenced. SO MUCH to remember.
Everything pointered @. Can get to anything, anywhere, easily. So easy to segfault.
None of these are real-world for a decent sized program beyond a use-case test.
Every OS has a method to inject a variable into the global space. Globals are required.
Accessing root files from anywhere is just stupid.
What would be the rules one *could* use to find a balance?
Globals make life easier, but one shouldn't have to worry about every detail, all the time.
Forum for discussion about the documentation project.
1 post • Page 1 of 1
Who is online
Users browsing this forum: Google [Bot] and 1 guest