Hullo! I just used $include for the first time, and I got a bizzarre error. The screenshot shows the actual error along with the version. The compiler (or the IDE, at least,) appears to think there's some unbalanced use of SUB or FUNCTION, but there isn't. The included file, turtle.bas, compiles and runs, (it just doesn't do anything beyond initializing variables,) so I haven't forgotten END SUB or anything.
Oh... I think I see. Is it because turtle.bas contains SUB and FUNCTION definitions; can statements not be placed after such things? It looks like I need to make one of two changes to turtle.bas: split it up into separate initialization and routine files or put all its initialization into a subroutine. Is that right? (I'd like it to be wrong.)