Say I make an codebox object and put in it "accum = 5;"
I will get an error that "accum" is a reserved word and the gen patch will not compile. That seems reasonable.
However, say I didn't know that "accum" was a reserved word and made a codebox object containing "History accum(5);"
That will destroy the behavior of the gen patch, but there are no warnings that anything is incorrect. I spent an hour troubleshooting a patch with bizarre behavior but no compile errors, only to find that changing "accum" to "accumulator" fixed the behavior issues.
I had the same thing happen in a patch where I was using alphabet letters for a sequence of variable names (A, B, C...). "E" was breaking the patch due to the constant e, but I didn't get any errors or warnings.
Can someone add warnings or errors to the gen patcher compiler for reserved keywords accidentally used as History variables? Also, is there a list of all the reserved keywords in one place, or should I make my own based on the different sections of the gen~ help file?