MathGroup Archive 2011

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

Search the Archive

Re: multiple contexts in package

  • To: mathgroup at smc.vnet.net
  • Subject: [mg118029] Re: multiple contexts in package
  • From: Alexey <lehin.p at gmail.com>
  • Date: Sat, 9 Apr 2011 07:12:42 -0400 (EDT)
  • References: <inmg25$psp$1@smc.vnet.net>

Sebastian Hofer <sebhofer at gmail.com> wrote:
> I have a package which uses (internally) a function f, which should normally be in the private context. But sometimes I want it to be visible. Is it possible to create some kind of sub-context in the package which makes f visible only if I load the package in a certain way? Maybe my original approach was just totally wrong...

Try DeclarePackage function:
http://reference.wolfram.com/mathematica/ref/DeclarePackage.html


  • Prev by Date: Selecting round parentheses arguments
  • Next by Date: Re: NetworkFlow example
  • Previous by thread: Re: multiple contexts in package
  • Next by thread: Bug with map in conjuntion with plotstyle?