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


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

multiple contexts in package

From Sebastian Hofer <sebhofer@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject multiple contexts in package
Date 2011-04-06 09:12 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <inhap5$283$1@smc.vnet.net> (permalink)

Show all headers | View raw


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

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


Thread

multiple contexts in package Sebastian Hofer <sebhofer@gmail.com> - 2011-04-06 09:12 +0000
  Re: multiple contexts in package David Bailey <dave@removedbailey.co.uk> - 2011-04-07 12:07 +0000

csiph-web