Re: ?? Lot of errors when loading <<Calculus VectorAnalysis twice
- To: mathgroup at smc.vnet.net
- Subject: [mg3533] Re: [mg3508] ?? Lot of errors when loading <<Calculus VectorAnalysis twice
- From: Allan Hayes <hay at haystack.demon.co.uk>
- Date: Thu, 21 Mar 1996 01:08:29 -0500
- Sender: owner-wri-mathgroup at wolfram.com
Roland BAUER <roland at ws01.ft.tuwien.ac.at> >Subject: [mg3508] ?? Lot of errors when loading <<Calculus VectorAnalysis twice Asks: does anyone know, why I get a lot of errors (tag CrossProduct is protected ... etc.) when I am loading the VectorAnalysis Package (for example) a second time during a session? Can I get around this? Ronald: If you have used x,y,z before loading the package then you will get messages about shadowing the first time you load. You can respod in the usual way with Remove[x,y,z] Two suggestions about the re-loading problem: (1) Use Needs["Calculus`VectorAnalysis`"] instead of <<Calculus`VectorAnalysis` (if a package is already loaded then Needs will not reload it) or (2) In the package, insert Unprotect["`*"]; immediately before Begin["Calculus`VectorAnalysis`Private`"] The each time you load the package the symbols in the package context will then be unprotected before being defined (they will get protected at the end). Allan Hayes hay at haystack.demon.co.uk ==== [MESSAGE SEPARATOR] ====