unwith - Maple Help

unwith

remove package exports from the global namespace

 Calling Sequence unwith( pname )

Parameters

 pname - name; the name of a package

Description

 • The unwith command undoes the effects of with. That is, it removes global bindings of package exports, which have been imposed by using the with command, for packages that are implemented as modules.
 • The unwith command works only for packages that are implemented as modules. Moreover, it is effective only in a session in which only module-based packages have been imposed on the global namespace using with. If with is called with a table- or procedure-based package as first argument at any time during a Maple session, then the unwith command is disabled. Subsequent attempts to call unwith result in an exception being raised.
 • It is an error to call unwith on a package whose exports have not been previously imposed by with.
 • The following packages are incompatible with the use of unwith because they are implemented as tables or procedures.

 Note: To see a list of the packages for which the exports are bound to the top level, use the packages command. The packages are listed in binding order, with the most recently bound package at the end of the list.

Examples

 > $\mathrm{with}\left(\mathrm{LinearAlgebra}\right):$$\mathrm{with}\left(\mathrm{StringTools}\right):$$\mathrm{with}\left(\mathrm{CurveFitting}\right):$$\mathrm{with}\left(\mathrm{Sockets}\right):$$\mathrm{with}\left(\mathrm{group}\right):$
 > $\mathrm{packages}\left(\right)$
 $\left[{\mathrm{LinearAlgebra}}{,}{\mathrm{StringTools}}{,}{\mathrm{CurveFitting}}{,}{\mathrm{Sockets}}{,}{\mathrm{group}}\right]$ (1)
 > $\mathrm{unwith}\left(\mathrm{StringTools}\right)$
 > $\mathrm{packages}\left(\right)$
 $\left[{\mathrm{LinearAlgebra}}{,}{\mathrm{CurveFitting}}{,}{\mathrm{Sockets}}{,}{\mathrm{group}}\right]$ (2)
 > $\mathrm{unwith}\left(\mathrm{group}\right)$
 > $\mathrm{with}\left(\mathrm{Student}:-\mathrm{LinearAlgebra}\right):$
 > $\mathrm{packages}\left(\right)$
 $\left[{\mathrm{LinearAlgebra}}{,}{\mathrm{CurveFitting}}{,}{\mathrm{Sockets}}{,}{\mathrm{Student}}{:-}{\mathrm{LinearAlgebra}}\right]$ (3)
 > $\mathrm{with}\left(\mathrm{StringTools}\right):$
 > $\mathrm{packages}\left(\right)$
 $\left[{\mathrm{LinearAlgebra}}{,}{\mathrm{CurveFitting}}{,}{\mathrm{Sockets}}{,}{\mathrm{Student}}{:-}{\mathrm{LinearAlgebra}}{,}{\mathrm{StringTools}}\right]$ (4)
 > $\mathrm{unwith}\left(\mathrm{group}\right)$
 > $\mathrm{with}\left(\mathrm{context}\right):$
 > $\mathrm{unwith}\left(\mathrm{LinearAlgebra}\right)$
 > $\mathrm{with}\left(\mathrm{group}\right):$