Method add_constant()
- Method
add_constant
voidadd_constant(stringname,mixedvalue)
voidadd_constant(stringname)- Description
Add a new predefined constant.
This function is often used to add builtin functions. All programs compiled after the add_constant() function has been called can access
valueby the namename.If there is a constant called
namealready, it will be replaced by by the new definition. This will not affect already compiled programs.Calling add_constant() without a value will remove that name from the list of constants. As with replacing, this will not affect already compiled programs.
- See also