2 ms·
If there is information that needs to be accessible across several not-otherwise-very-interdependent modules of a program, then you need to have something with
by foldr 17y ago
If there is information that needs to be accessible across several not-otherwise-very-interdependent modules of a program, then you need to have something with essentially all the properties of a global variable. That doesn't' necessarily mean that you need a single identifier with global scope, but it does mean that you need something with essentially the same properties.