Namespaces/Context in Packages?

*To*: mathgroup at smc.vnet.net*Subject*: [mg44791] Namespaces/Context in Packages?*From*: Kastens at Hamburg.BAW.DE (Marko Kastens)*Date*: Thu, 27 Nov 2003 11:38:15 -0500 (EST)*Organization*: BAW-AK, Hamburg-Rissen, Germany*Sender*: owner-wri-mathgroup at wolfram.com

Hi! I'd like to use functions from other packages in my own package. How to do this? I've tried: BeginPackage["TestPackage`",{"Statistics`ContinuousDistributions`"}] TestFunction::usage = "TestFunction[<list>]" Begin["`Private`"]; TestFunction[list_]:= { Mean[list] } End[]; EndPackage[] The problem is, that Mean is not known in the Testfunction or - if the testfunction is declared outside private - I got the error-msg that Mean is shadowed by other packages. Trying to use Statistics`ContinuousDistributions`Mean[list] doesn't work either. Any suggestions? Thanks, marko