NAME

pubname - returns the UTF-8 name of the given public index

SYNOPSIS

oadl::pubname(pub)

DESCRIPTION

The pubname() function performs an inverse lookup on the public symbol table to find the name associated with the given public index pub. Public indices are typically used for method dispatch or property access.

RETURN VALUE

Returns a string containing the name of the public symbol if found. If the symbol is not found in the public table, it returns nil.

ERRORS

ArgCheck is thrown if exactly one argument is not provided.

EXAMPLE

    // Suppose 'color' is a public symbol
    "Public name: ", oadl::pubname(color), '\n';

SEE ALSO

findobj
objname