Project

General

Profile

Up

_funlist DEPRECATED

Gets some infos on the functions in a given environment.

This functions doesn't browse all the environment depth.

Prototype :

fun [Env] [Sold I I Sold r1]

  • Env : an channel environment

Return : [Sold I I Sold r1] a specific list (see Note below) or nil if error

For each element of the list, you find :

See also :

_CtoScol

_envList

_envchannel

funType (Syspack)

getInPackage (Syspack)

getPackages (Syspack)

scolAllFuns (Syspack)

scolAllFunsWithArgs (Syspack)

scolSearchInChn (Syspack)

varType (Syspack)

Example :

fun test ()=
	_fooS "test !";;
	
fun getFunList (a)=
	if a == nil then
		0
	else
		let a -> [a0 a1 a2 a3 an] in
		(
		_fooS "------";
		_fooS _CtoScol a0;
		_fooId a1;
		_fooId a2;
		_fooS _CtoScol a3;
		getFunList an
		);;

fun main ()=
	_showconsole;	
	getFunList _funlist _envchannel _channel;
	0;;

The console will display :

------
main
430352
0
fun [] I
------
getFunList
430255
1
fun [[Sold u0 u1 Sold r1]] I
------
test
430116
0
fun [] S

Note :

Be careful, the prototype is fun [Env] [Sold I I Sold r1], not fun [Env] [[Sold I I Sold] r1] even if this last is much more common.