MathGroup Archive 2001

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

Search the Archive

Re: Unappropiate context in a package [correction]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg29628] Re: Unappropiate context in a package [correction]
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Fri, 29 Jun 2001 01:36:01 -0400 (EDT)
  • References: <9h8m8n$qss$1@smc.vnet.net> <9heu1h$6lv$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

<gleam at flashmail.com> wrote in message news:9heu1h$6lv$1 at smc.vnet.net...
> 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
>
>


Paul,

Quite right - thanks.
Apologies for the slip.

--
Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565









  • Prev by Date: TeX and EPS output (Mathematica version 3.0, Macintosh)
  • Next by Date: Re: same plot for continous and discrete function
  • Previous by thread: TeX and EPS output (Mathematica version 3.0, Macintosh)
  • Next by thread: Problems with TeX and EPS output (v3.0, mac)