Good old BBC Basic and its handling of variables
André Timmermans (100) 655 posts |
During the weekend I spent some time making James Reynolds !Spectrum work on recent machine and centralized the code for effect selection and initialization which was duplicated in several places. So ended with something looking like this:
How could I forget the intricacies of Basic’s variable handing? Because of course it ended using the value passed to PROCselect_effect() for the EQUD |
David J. Ruck (33) 1635 posts |
Having meaningful variable names would make the issue less likely too. |
Chris Hall (132) 3554 posts |
Because of course it ended using the value passed to PROCselect_effect() for the EQUD Of course it did. That was what you asked it to do. |