REFLECTION::EXISTF 1g 2023-12-12 laplante@plcb.ca GOWEB/REFLECTION


title: “REFLECTION::EXISTF” version: “1.0.0” date: “2023-12-12” author: “laplante@plcb.ca” section: “1g”

module: “GOWEB/REFLECTION”

name

reflection::existf checks whether a system function exists.

Synopsis

Description

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.

Examples

res={{
    func f() {
        "a user function";
    }

    existf("f");
    existf("existf");
    a := "existf";
    existf(a);
    existf("blabla");
}}.

Return:

res=false true true false.

Author

See also

Version