Availability:C-language interface function
functor_t PL_new_functor(atom_t
name, int arity)Returns a functor identifier, a handle for the name/arity pair.
Functors are garbage collected by atom garbage collection if no term,
clause or record uses them. As PL_new_atom(), PL_new_functor()
adds a reference to the functor, so foreign code may keep it, e.g., in a
static variable. If the functor is no longer needed, foreign code may
call PL_unregister_functor().
See also PL_register_functor().
Currently aborts the process with a fatal error on failure.
Future versions may raise a resource exception and return
(atom_t)0.