in reply to Re: Re: Re: Help - I'm a C programmer
in thread Help - I'm a C programmer
Was this an example of when to use globals? This is exactly when using globals will come back and bite you a couple weeks/months down the line. If you have a large and complex "state", wrap it up into a meaningful structure; Then you just have to pass around a reference to that structure, which makes passing around a large state very easy.
|
|---|