Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: using functions with package name prefixed.

  • To: mathgroup at
  • Subject: [mg45621] Re: using functions with package name prefixed.
  • From: Jens-Peer Kuska <kuska at>
  • Date: Fri, 16 Jan 2004 19:56:58 -0500 (EST)
  • Organization: Universitaet Leipzig
  • References: <bu8gma$aiu$>
  • Reply-to: kuska at
  • Sender: owner-wri-mathgroup at


no, because the function you call, may call
other function in the package. And Mathematica knowns
nothing about the call tree to the function.


steve_H wrote:
> hi;
> is there a way to use a function from a package without loading
> the whole package, but by simply prefixing the package name to
> the function name?
> For an example, suppose we have a function foo[] in a packge called
> Boo.m
> Now, one must load the Boo package by typing something like
> Needs["`Boo"]
> then one can write
> foo[]
> But notice that when calling foo[], the package name is not prefixed to
> it, hence one does not know in which package foo[] is in by looking
> at the function call.
> In Java for instance, I can write, which makes it more
> clear where foo() is located.
> Is there a way to do something like this in Mathematica? and is there a way
> to only load the function that I need from the package without loading
> everything?
> thanks,
> Steve

  • Prev by Date: AW: Simple list operation
  • Next by Date: RE: Anyone using the Units package extensively?
  • Previous by thread: Fwd: using functions with package name prefixed.
  • Next by thread: Re: using functions with package name prefixed.