Identifier: unique_compound_name

Type

string

Description

A system-derived unique name to be used when creating compound objects.

The value of this identifier will change every time it is called, by incrementing an internal serial number, e.g.

Command> tell unique_compound_name
cmp000001
Command> tell unique_compound_name
cmp000002

Derived names are unique only within the current Fire session.

The same system of unique naming is used when creating compound objects without specifying a name, e.g.

compound ~test.thing_t { entity e[] }
~test.thing_t

This will name the new object using the unique name rule. Using the unique_compound_name identifier has the advantage of knowing what unique name will be used, so the above code could also be written as follows:

compound ~test.thing_t { entity e[] }
string uniq=unique_compound_name
~test.thing_t ^(uniq)

Notes

The value of this identifier cannot be changed.

See Also

Commands:

compound

Identifiers:

unique_gstructure_name (string)