title: “REFLECTION::EXISTF” version: “1.0.0” date: “2023-12-12” author: “laplante@plcb.ca” section: “1g”
reflection::existf checks whether a system function exists.
This function checks whether a system function exists.
It can be useful to validate if a given function name is defined either by the system or user before attempting to call it.
res={{
func f() {
"a user function";
}
existf("f");
existf("existf");
a := "existf";
existf(a);
existf("blabla");
}}.
Return:
res=false true true false.