MathGroup Archive 2003

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

Search the Archive

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg40221] Re: Q: About Needs[] and something about Contexts
  • From: sodastereo at eudoramail.com (Julius Carver)
  • Date: Wed, 26 Mar 2003 02:43:15 -0500 (EST)
  • References: <b5hcqh$m8j$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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[ ]