MathGroup Archive 2001

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

Search the Archive

Re: Re: Unappropiate context in a package

  • To: mathgroup at smc.vnet.net
  • Subject: [mg29614] Re: [mg29600] Re: Unappropiate context in a package
  • From: gleam at flashmail.com
  • Date: Thu, 28 Jun 2001 05:28:03 -0400 (EDT)
  • References: <9h8m8n$qss$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Allan Hayes wrote:

>Guillermo,
>
>You are right to suspect  t.
>
>When your package code below is loaded
>
>BeginPackage["test`test`"];
>
>qContinuousTest::usage = "qContinuous[test]";
>
>Begin["`Private`"];
>
>  qContinuousTest[acute_, conti_, t2_] :=
>     Module[{tau, a, c, r, t1},
>         a[t1_] = acute /. t -> t1;
>         c[t1_] = conti /. t -> t1;
>        r = Integrate[ExpandAll[a[tau]]*c[t1 - tau], {tau, 0, t1}];
>         r /. t1 ->t2
>     ];
>
>  End[];
>  Protect[qContinuousTest];
>  EndPackage[];
>
>The t in in the stored version of
>
>     a[t1_] = acute /. t -> t1;
>     c[t1_] = conti /. t -> t1;
>
>translate to  test`test`t;

Wouldn't this translate to "test`test`Private`t" because t is declared 
while Begin["`Private`"] in invoked?

Paul



  • Prev by Date: Version 4.0 or 4.1 worse than 3.0?
  • Next by Date: Re: Two CPU AMD PC and Mathematica
  • Previous by thread: Re: Unappropiate context in a package
  • Next by thread: List problems