Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'quitting a package' topicStudent Support Forum > General > "quitting a package"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
jf
11/05/12 2:29pm

I am not sure I understand your packages. Are they just files of code you run with

<< pkg1.m
?

Do you need to stop execution, or Clear variables used on one package before starting the other? If the latter, you could start each package with
Clear["Global`*"]
to begin with a clean slate as far as user variables are concerned.

Have you considered placing the package contents into different contexts so different variables will not interfere? references:

http://reference.wolfram.com/mathematica/tutorial/SettingUpMathematicaPackages.html

http://reference.wolfram.com/mathematica/tutorial/Contexts.html



URL: ,

Subject (listing for 'quitting a package')
Author Date Posted
quitting a package PhysicsGuy 11/05/12 1:46pm
Re: quitting a package jf 11/05/12 2:29pm
Re: Re: quitting a package PhysicsGuy 11/05/12 2:36pm
Re: Re: quitting a package PhysicsGuy 11/08/12 11:05am
Re: quitting a package Bill Simpson 11/08/12 12:57pm
Re: Re: quitting a package PhysicsGuy 11/08/12 1:31pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic