Spontaneous types
In the TTCN-3 standard structured/enumerated types can be created spontaneously for any (or most) language elements that have a type specifier (see Annex A).
For example, when defining a variable, its type can be a built-in type, a reference to an existing type definition, or a new structured type can be created just for this variable.
var record of integer v := { 1, 2, 3 };
function f(in record { integer num, charstring str } p) { ... }
/cc @aknappqwt @mmagyari