MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Inadvertant introduction of Global` symbols from packages

  • To: mathgroup at
  • Subject: [mg61103] Inadvertant introduction of Global` symbols from packages
  • From: "Steven T. Hatton" <hattons at>
  • Date: Mon, 10 Oct 2005 02:40:05 -0400 (EDT)
  • Organization: Globalsymmetry
  • Sender: owner-wri-mathgroup at

I thought I had figured out why this was happening, but it started happening
again after I made the changes I thought would fix it.  I have a package
that uses LinearAlgebra`Orthogonalization`Normalize.  I therefore have
BeginPackage["STH`Fluid3D`", {"LinearAlgebra`"}] as the first line of the
package.  The only context where I use Normalize is the
"STH`Fluid3D`Private`" context.  When I load the package in a notebook I
often have a symbol called "Normalize" in the Global` context.  Sometimes I
have received an error telling me about the shadowing, but not always. 
When it happens, my code stops working.  How can I prevent this kind of
thing from happening?
"Philosophy is written in this grand book, The Universe. ... But the book
cannot be understood unless one first learns to comprehend the language...
in which it is written. It is written in the language of mathematics, ...;
without which wanders about in a dark labyrinth."   The Lion of Gaul

  • Prev by Date: Re: Sundry Questions
  • Next by Date: SameTest in Union
  • Previous by thread: Re: surface intersection
  • Next by thread: SameTest in Union