I'm so used to doing callbacks in C and similar languages that I used the approach required there.
After coding the above, I did realize that I probably could have just made the variables visible at certain levels and then access it from the call backs. I do, however, prefer the formality of the C-style callback data.
If you think the code should be changed a bit, then that's fine. I'll just need to alter my code that uses it.
Bill,
I'm so used to doing callbacks in C and similar languages that I used the approach required there.
After coding the above, I did realize that I probably could have just made the variables visible at certain levels and then access it from the call backs. I do, however, prefer the formality of the C-style callback data.
If you think the code should be changed a bit, then that's fine. I'll just need to alter my code that uses it.