is_registered


Description:

public bool is_registered (string namespace_, string? version)

Check whether a particular namespace (and optionally, a specific version thereof) is currently loaded.

This function is likely to only be useful in unusual circumstances; in order to act upon metadata in the namespace, you should call require instead which will ensure the namespace is loaded, and return as quickly as this function will if it has already been loaded.

Parameters:

this

A Repository or null for the singleton process-global default Repository

namespace_

Namespace of interest

version

Required version, may be null for latest

Returns:

true if namespace-version is loaded, false otherwise