How to make variable have package scope but not global scope.
- To: mathgroup at smc.vnet.net
- Subject: [mg90389] How to make variable have package scope but not global scope.
- From: jeremito <jeremit0 at gmail.com>
- Date: Tue, 8 Jul 2008 02:25:41 -0400 (EDT)
I am a beginner in package development in Mathematica. I need a package because I have several functions that call each other that depend on the same data. Instead copying and passing the data around, I want to have the functions all access the data directly. My package currently looks like: f[A_, x_] := Module[{}, b = A.x; Return[{b,A}]; ] g[A_, l_] := Module[{}, ... (*You get the picture*) ] So my question is, how can my variables have package scope, but not global scope? What is the best way to implement this? Thanks, Jeremy