The "package" is determined strictly at compile time. First, I'll rant about
wanting to mix code and data, a great source of security holes if not also
a horrible maintainance headache (what if they ask for "main" as the package
to import their variables!?).
Having said that, one option is to do as the
routine, messing with globs to copy values. Ewww. Much smoke, many mirrors.