fingerlight
2017-08-27 04:51:39
I'm afraid my programming style isn't very sophisticated, so I've used up nearly all the globals. I suppose if I had used the globals bitwise (testing for bits set or not set in a global) I wouldn't have the problem.
But now I'm wondering if there's any way to have more globals available. Or maybe there's some technique for storing the globals externally (external to MT), and then retrieving them.
It would look something like this:
- Store the cutoff value of a filter in 'ga' (this is iteration 1 of 'ga')
- Use it when as I normally do.
- If I need another variable, say, to store the q of that filter (but don't have any more variables available) Do the following:
- - Store 'ga' externally (don't know how I would do that)
- - In MT, overwrite iteration 1 of 'ga' with the filter q value (this is iteration 2 of 'ga)
- - Use this iteration 2 of 'ga' any time I'm working with the q value
- - If I want to work with the cutoff value again, do the following:
- - Store the q value externally in an unused location.
- - Retrieve the cutoff value, storing it in a 'ga'
- - Use this as a starting point for any changes i want to make to the cutoff.
I'm not sure if this is ridiculous, or if there's another - simpler - solution.
Well, now that I've written it out, I see it might be possible to do this in MT entirely, using the same scheme. But in any case, I'd sure like a better way of doing it.
Thanks,
Gabriel