I am puzzled by the strange behaviour of the following exampleSectionaken directly from the Programming Guide section 8.6. When I copy the example from the help to a worksheet as follows, I get an error stating that module m does not evaluate to a module in the use statement.
> m := module() export a, b; a := 2; b := 3; end module:
use m in a + b end use;
Error: `m` does not evaluateto a module.
However, after a restart, when I execute the two statements as separate statements (separate prompts), the module does evaluate properly.
My question is, what is the safe workaround in coding to avoid this situation.
I have attached the worksheet.moduleeval.mw