Up |
_envPkgIsLoaded
Return if a package is loaded in a given channel.
Prototype :
fun [Chn S] I
- Chn : any channel. If nil, the initial environment will be set. Else, associated environment with this channel will be set (= the initial environment + all packages and strings loaded in this channel).
- S : a package name.
Return : I 1 if loaded, 0 if not loaded. It returns nil if error.
See also :
Example :
fun main ()=
_showconsole;
_fooId _envPkgIsLoaded _channel "lib/test/core/a.pkg"; // 1
_fooId _envPkgIsLoaded _channel "lib/std/list.pkg"; // 1
_fooId _envPkgIsLoaded _masterchannel "lib/std/list.pkg"; // 0
0;;