Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to "unload" a package after it was "with" when it is implemented not using modules?

1 view
Skip to first unread message

Nasser M. Abbasi

unread,
Nov 19, 2009, 5:45:05 AM11/19/09
to
hi;

Maple 12:

When I type with(simplex) for example, I can't do unwith(simplex) because
simplex package is not implemented using modules.

>unwith (simplex);
Error,(in unwith)the procedure `unwith'is currently disabled due to the
presence of table-based packages

I am not sure then how to "clean" things out. Suppose I want to remove all
effects of withing this package (but without doing restart()) is there a way
to do this?

On a side question. I am trying to count/list the functions in each Maple
package. One way I am doing this is to do with() for each package obtained
from the command ?index[packages] and capture the output of the with()
command.

I could not find a way to do something like ?package_name[*] or something
like this. i.e. to say, give me a list of the commands in this package. Is
there one that I overlooked?

thanks,
--Nasser


Bill

unread,
Nov 19, 2009, 9:37:41 AM11/19/09
to
Look at the help page for "unwith":
"The following packages are incompatible with the use of unwith
because they are implemented as tables"
includes simplex.

You can unassign many of the "top level" functions of the package via
> seq(unassign(x), x in with(simplex));
and
> seq(unassign(x), x in select(x -> evalb(0 < searchtext("simplex", x)), [anames(procedure)]));
but this can still leave a lot of other things associated with package
still wandering about.

Bill

0 new messages