|
[Date Index]
[Thread Index]
[Author Index]
Re: Unloading packages
- To: mathgroup at smc.vnet.net
- Subject: [mg32539] Re: [mg32528] Unloading packages
- From: jmt <jmt at agat.net>
- Date: Sat, 26 Jan 2002 04:07:58 -0500 (EST)
- References: <200201250758.CAA09868@smc.vnet.net>
- Reply-to: jmt at agat.net
- Sender: owner-wri-mathgroup at wolfram.com
Many ways :
If in your source package you modify a whole definition, you can reload the
package by using Get. Example
in package :
myConstant=1
If you modify only a partial definition, either clear all definitions in your
package, or clear all definitions in the calling notebook. Example one :
BeginPackage, etc.
ClearAll@myFunction
myFunction[pat1]:=something
myFunction[pat2]:=otherthing
etc.
and then Get
Example two :
Remove["myPackage`*"];
Get["myPackage"]
On Friday 25 January 2002 08:58, Sseziwa Mukasa wrote:
> Is is possible to unload packages or have the functions therein be
> reread from the source file every time the source changes? I have a
> package that I am modifying and unfortunately I am introducing errors.
> When I fix the errors though I cannot reload the package so I have to
> quit and restart the kernel. Hardly elegant by any measure.
>
> Thanks in advance,
>
> --
> Sseziwa Mukasa Business phone (direct) : (978) 536-2359
> JEOL USA INC (operator) : (978) 535-5900
> 1 Intercontinental Way
> Peabody, MA 01960 email: mukasa at jeol.com
> USA
Prev by Date:
RE: NestWhile
Next by Date:
Re: Re: Intersection Ellipse & Circle
Previous by thread:
Unloading packages
Next by thread:
RE: Unloading packages
|