What about creating a new symbol in the user's own dictionary for this purpose,
this way?:
newPackage "Foo"
export{foo}
mean = getSymbol "mean"
foo=new MutableHashTable;
foo#mean="something";
Don't export "mean". Then the user can type
foo.mean
and there will be no problem if multiple packages do the same thing, or
if this package is reloaded.
> --
> You received this message because you are subscribed to the Google Groups "Macaulay2" group.
> To post to this group, send email to maca...@googlegroups.com.
> To unsubscribe from this group, send email to macaulay2+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/macaulay2?hl=en.
If symbols with the same name are exported from two packages, then there
are two symbols, and one will not serve as the other as a key in a hash