Menu

#101 trying to load_pacgae(gentran) if it is already loaded fails

None
closed
nobody
None
2
2019-07-16
2019-07-15
arpi
No

If the command
load_package(gentran);
is issued twice, it results in an error, invalid syntax message. I know it makes no sense to load a package twice, but I usually edit my reduce files in an editor, and reload them in the GUI reduce to verify.

Discussion

  • Rainer Schöpf

    Rainer Schöpf - 2019-07-15

    load_package is not a procedure call, but a statement that takes a list of names. It should read

    load_package gentran;
    

    without the parentheses.

    The gentran package defines the gentran statement, which conflicts with the use of the symbol gentran as procedure argument.

    Rainer

     
    • arpi

      arpi - 2019-07-16

      Thank you.

       
  • Rainer Schöpf

    Rainer Schöpf - 2019-07-16
    • status: open --> closed
    • Group: -->
     

Log in to post a comment.