hi,

if I understand correctly, the :immediate pragma makes the sub which has this pragma run immediately after parsing (well, at least before running the program)

Suppose I have this code:

   .sub loadstuff :immediate
      # load stuff
   .end

   .sub main
       dostuff( )
       end
   .end

Then, running this code will start running the loadstuff( ) again (because main doesn't have the :main pragma, and loadstuff() is at the top of the file). My concern is, is this the desired effect? Shouldn't the :immediate subs only be run once? So, in effect shouldn't they be skipped (if they're at the top of the file, where execution starts when :main is missing) when running the program?

regards,
klaas-jan


Reply via email to