uCalc API Version: 5.7.0-preview.1 Released: 7/30/2026
Warning
uCalc API Preview Release Notice:This preview documentation describes the intended behavior of the API. It is not fully accurate or complete.The current preview build contains incomplete features, unoptimized performance, and is subject to breaking changes.Use of the preview version in your production code is not recommended.
Product:
Class:
Unregisters a custom data type and releases its associated resources from the uCalc instance.
This method does not return a value.
This method manually removes a custom data type definition from its parent uCalc instance. Releasing a data type frees up its associated memory and makes its name available for reuse.
ReleaseWhile not frequently needed, manually releasing a data type is useful in specific scenarios:
Release allows for precise control over the parser's state and memory usage.It's important to understand uCalc's resource management model. All objects created within a uCalc instance (including functions, variables, and data types) are owned by that instance.
uCalc object, all associated data types are automatically released. This is the most common and safest way to clean up resources.myDataType.Release() provides granular control but requires you to manage the object's lifecycle carefully.This model is analogous to RAII (Resource Acquisition Is Initialization) in C++, where object lifetime is tied to scope. The uCalc object acts as the scope for all its definitions.
String, Int, or Double.