Programming Using Data Structures

In designing new primitives that use data structures it is very important to understand how to instantiate a data structure, when it should be created using new (on the heap), when an instance of a data structure may be deleted and when not. The incorrect use of the data structure mechanism can lead to memory leaks or to unexpected behavior.

Initializing Data Structures

There is a handler class to manage many tasks related to data structures, appropriately named DsHandler.

Using Data Structures

Two types of operations can be executed on data structures. Generic type operations, that can be executed on every data structure regardless of its type and type specific operations, which are only defined for specific data structures.

When to Clone/Release Data Structures.

Part of MLDesigner's data structure mechansim are classes that handle the copying and releasing of data structure value objects. The base class is called TypeRef.