MathGroup Archive 2011

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

Search the Archive

multiple contexts in package

  • To: mathgroup at smc.vnet.net
  • Subject: [mg117959] multiple contexts in package
  • From: Sebastian Hofer <sebhofer at gmail.com>
  • Date: Wed, 6 Apr 2011 05:11:34 -0400 (EDT)
  • Reply-to: comp.soft-sys.math.mathematica at googlegroups.com

I'd like to create a context for semi-hidden symbols (i.e. only provided if explicitly loaded) in one of my packages. How can I achieve such a thing?
My best bet was the following (inspired by looking at the Parallel package):

BeginPackage["Package`"]
(*visible symbols*)

BeginPackage["Package`Hidden`"]
(*semi hidden symbols*)
EndPackage[]

Begin["`Private`"]
(*hidden symbolds*)
End[]
EndPackage[]

Trying to load Package`Hidden` does not load anything though. Where am I going wrong?

Best regards,
Sebastian


  • Prev by Date: fitting function with two errorbars
  • Next by Date: Re: Integrate gives wrong results for a simple polynomial
  • Previous by thread: Re: fitting function with two errorbars
  • Next by thread: Re: multiple contexts in package