I have created a package that consists of a function which uses
This function contains a parameter, say
a, and I want to call the package in an notebook environment and define
a in the notebook.
So far I define this parameter within the package as
a=Global`a and I call the package with
The problem is now that I want to initialize or load the package at the very beginning of my notebook and just later determine the value of
a. In order that the function is compilable I need to reload the package a second time after assigning a value to
a. Is it possible that the internal code in the package automatically takes over the value of
a without calling it a second time in the notebook environment? I tried something like
a:=Global`a but it does not seem to work.
What would be the common approach to such a problem.
Of course, I could initialize the parameter first, before I call the package. Though I wonder whether there is a solution if I do it the other way round.