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


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

Re: basic namespace question, and access to BinarySearch

Started byBill Rowe <readnews@sbcglobal.net>
First post2013-09-12 06:15 +0000
Last post2013-09-12 06:15 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

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

#15419 — Re: basic namespace question, and access to BinarySearch

FromBill Rowe <readnews@sbcglobal.net>
Date2013-09-12 06:15 +0000
SubjectRe: basic namespace question, and access to BinarySearch
Message-ID<l0rm6l$592$1@smc.vnet.net>
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];



[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web