Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #15419

Re: basic namespace question, and access to BinarySearch

From Bill Rowe <readnews@sbcglobal.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: basic namespace question, and access to BinarySearch
Date 2013-09-12 06:15 +0000
Message-ID <l0rm6l$592$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


On 9/10/13 at 3:33 AM, alan.isaac@gmail.com (Alan) wrote:

>What is the proper way to get access to a package without adding
>that package to $ContextPath?

There is not a proper way to do this.

>If I use Needs, the package name is added to $ContextPath.  (Of course I can remove items from
>$ContextPath.)

Yes it is possible to delete something from $ContextPath. But
once you do that you won't be able to access the functions in
the package normally.

That is try the following:

Load some package then do:

t=First@$ContextPath;
$ContextPath = Rest@$ContextPath;

Now note none of the functions in the package are available to
you using normal calls. Those functions can be restored by doing:

$ContextPath=Join[{t},$ContextPath];



Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: basic namespace question, and access to BinarySearch Bill Rowe <readnews@sbcglobal.net> - 2013-09-12 06:15 +0000

csiph-web