MathGroup Archive 2003

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

Search the Archive

Re: Q: About Needs[] and something about Contexts


As you read in the help, you need to write Needs["context`", "file"]
if the specified context is not already in $Packages. (Note: $Packages
is different from $Path)
Context refers to the argument of the function BeginPackage that one
has to put as the first line of any package; whereas file refers to
the complete route of the package's file. So in your example you have
to write

Needs["mypack`", "D:\\putte\\kelso\\mypack.m"]

if "mypack" is the context of your package

Julius


  • Prev by Date: Re: List Operation ?
  • Next by Date: Re: List Operation ?
  • Previous by thread: Re: Q: About Needs[] and something about Contexts
  • Next by thread: The difference between Needs[ ] & Get[ ]