shadow
shadow(l_symbols[t_namespace] ) =>t
Description
Adds symbols s_symbol to the shadow list of the default namespace. The symbols which are added to the shadow list are not overridden by import.
Arguments
|
Specify a list of symbols to be protected in the default namespace. |
|
|
(Optional) Specify the namespace in which these symbols should be protected. The default value is the " |
Value Returned
|
Indicates that the symbol was added to the shadow list of the current namespace. |
Examples
addToExportList('(p1:::x p1:::y p1:::z))
=> t
addToExportList('(p2:::x p2:::y p2:::z))
=> t
useNamespace("p1")
=> t
useNamespace("p2")
*error* useNamespace symbol name conflict - p2::x p2::y p2::z
unuseNamespace("p1")
shadow(shadow('p1::x p1::y p1::z))
=> t
useNamespace("p2")
=> t
Related Topics
Return to top