[mg90389] How to make variable have package scope but not global scope.

View: New views
1 Messages — Rating Filter:   Alert me  

[mg90389] How to make variable have package scope but not global scope.

by Jeremy Conlin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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



LightInTheBox - Buy quality products at wholesale price