Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Program Flow vs Coding Order
#2
Any command that is handled in the preprocess direct queue is subject to this type of problem.

Code: (Select All)
SUB INIT
    $LET whatever = TRUE
END SUB

SUB FOO
    $IF whatever THEN
END SUB

Move that FOO before INIT and that $LET isn't going to work or trigger for you.  It works solely on a first come, first serve basis.

Other things of similar processing:

OPTION BASE 0/1
DEF(any)
_DEFINE
$CHECKING:ON/OFF
$RESIZE:whatever

Heck almost any of the metacommands are handled on a top/down flow.  

Code: (Select All)
SUB INIT
   $CHECKING OFF
END SUB

SUB FOO
   $CHECKING:ON
END SUB

With the above, you've basically screwed with $CHECKING completely opposite of how you intended.   

So any of these precompiler type commands work with like this.   Beware when moving subs/functions.  It's not as simple as it seems.
Reply


Messages In This Thread
Program Flow vs Coding Order - by Pete - 02-02-2026, 05:34 PM
RE: Program Flow vs Coding Order - by SMcNeill - 02-02-2026, 07:48 PM
RE: Program Flow vs Coding Order - by dano - 02-03-2026, 04:27 PM
RE: Program Flow vs Coding Order - by Pete - 02-03-2026, 05:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  personal coding challenge results James D Jarvis 4 618 06-20-2025, 03:20 PM
Last Post: James D Jarvis
  Funny Coding eoredson 10 1,775 01-01-2025, 05:09 AM
Last Post: eoredson
  Coding Efficiency SMcNeill 33 5,784 09-13-2024, 06:56 PM
Last Post: Pete
  Coding Styles Pete 33 5,519 09-09-2024, 12:46 AM
Last Post: dano
  What are your best and worst coding traits? Pete 11 2,186 11-10-2022, 04:01 AM
Last Post: JRace

Forum Jump:


Users browsing this thread: 1 Guest(s)