Some instructions can't be called in Direct Mode, like DISPLAY. It would be neat if the function knew whether it would be appropriate to call such functions. A solution I'm seeing now is to have a global var in the program that can only be changed if that program is running. Like,
DIM T,DT,RT WHILE 1 IF SomeCondition THEN F ENDIF '... INC T WEND DEF F IF !RT THEN DT=T RT=1 RETURN ENDIF DIM D=-1 IF RT && DT!=T THEN DISPLAY OUT D ENDIF 'if D is -1, we're in Direct Mode. '... RT=0 ENDBut this would require that F fails on the first call. Any ideas?