method

new_constants_in

Importance_1

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.1.7.7) is shown here.

new_constants_in(*descs) public

Run the provided block and detect the new constants that were loaded during its execution. Constants may only be regarded as ‘new’ once – so if the block calls new_constants_in again, then the constants defined within the inner call will not be reported in this one.

If the provided block does not run to completion, and instead raises an exception, any new constants are regarded as being only partially defined and will be removed immediately.

Show source
Register or log in to add new notes.