Shop OBEX P1 Docs P2 Docs Learn Events
PropBasic TASK - ENDTASK — Parallax Forums

PropBasic TASK - ENDTASK

FriedVFriedV Posts: 77
edited 2011-09-27 03:47 in Propeller 1
Last night I deleted an ENDTASK statement by accident.
PropBasic gives some really weird error messages then, as I edited some other parts of my code it tookme quite a while to find out what was wrong (ok,it was quite late...). But it would be nice if the compiler could check TASK-ENDTASK, SUB-ENDSUB and FUNC-ENDFUNC and generate apprpriate errors.
Cheers, Fried

Comments

  • BeanBean Posts: 8,129
    edited 2011-09-27 03:47
    Fried,
    You can have SUB..ENDSUB and FUNC...ENDFUNC within a TASK...ENDTASK. So the compiler wouldn't know anything was wrong until it hit another TASK line.

    Bean
Sign In or Register to comment.