Product Site

5.1.3.8. isConstant

Returns .true if the method is a Constant method, otherwise returns .false.

See also ::CONSTANT directive.

Example 5.28. Method class — isConstant method
say .physics~method("c")~isConstant              -- 1

::class physics
::constant c 299792458