Sorry I have to pester you again:
I'm writing a preset for Wildebeest Chess.
Now I have a strange bug in the code which I can't understand. I have
boiled it down to the following little procedure:
sub test;
my i;
set i origin;
do:
if != space #i @:
die X.;
endif;
set i where #i 0 1;
loop until == #i dest;
endsub;
This is defined in the pre-Game part. In the Post-Move-1 part I call the
procedure:
gosub test;
Then I enter a pawn move, e.g. f2-f5 and I get the error message
'misplaced endsub' at the line number where the procedure 'test' ends.
Why is this?