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