Re: Package creation
- To: mathgroup at smc.vnet.net
- Subject: [mg39227] Re: Package creation
- From: Antti Penttilä <Antti.I.Penttila at helsinki.fi>
- Date: Tue, 4 Feb 2003 02:23:26 -0500 (EST)
- Organization: University of Helsinki
- References: <b1l1l6$ia0$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Jan Schmedes wrote:
> Hello,
>
> i have a problem by creating a package. I need routines from another
> package
I think that your second form of the package loading is correct:
> BeginPackage["Seismo`Hazard`PSHA`",{"Statistics`ContinuousDistributions`"}]
but you should use the full context with symbols inside your own package which
are from Statistics`ContinuousDistributions`, e.g. write
Statistics`ContinuousDistributions`NormalDistribution
instead of
NormalDistribution
That's why you get the error message like
> Random::"randt": Type specification
> Seismo`Hazard`PSHA`Private`NormalDistribution[<<19>>
> , 0.16] in Random[<< 1 >>]
> should be Real, Integer, or Complex.
--
Antti Penttilä Antti.I.Penttila at invalid.helsinki.fi