c - Is it possible to avoid global variables in a strictly procedural program? -
being developer born , raised on oo, curious hear how it's possible avoid global state in procedural program.
you can write object-oriented code in c. don't c++ goodies , it's ugly, , have manually pass pointer (i've seen self
used this, in order make compatible c++), works. technically, don't need global state in pure procedural languages same reasons don't need in object-oriented languages. have pass state around explicitly, rather implicitly in oo languages.
Comments
Post a Comment