type-for-copy

Returns an appropriate type for creating mutable copies of its argument.

The type-for-copy value of a collection must be an instantiable subtype of <mutable-collection>.  For collections that are themselves mutable, the collection’s actual class is generally the most appropriate (assuming it is instantiable).  The type-for-copy value for a sequence should be a subtype of <sequence>, and the type-for-copy value of an explicit key collection should be a subtype of <explicit-key-collection>.

The method on <object> returns the result of calling object-class on the object.

Exported from

Modifiers

open

Arguments

objectAn instance of <object>.

Values

typeAn instance of <type>.
Summary
Returns an appropriate type for creating mutable copies of its argument.
The method on <mutable-collection> returns the result of calling object-class on the mutable collection.
The method on <range> returns <list>.

Functions

type-for-copy

The method on <mutable-collection> returns the result of calling object-class on the mutable collection.

type-for-copy

The method on <range> returns <list>.

The class of collections that may be modified.
Returns the class of which object is a direct instance.
The class of arithmetic sequences.
The class of linked lists.
Returns an appropriate type for creating mutable copies of its argument.
The class of collections whose keys are consecutive integers starting from zero.
The class of all collections that are not sequences.
The class of all Dylan objects.
The common-dylan module.
Whenever possible, we have tried to keep the Dylan module pristine and unextended, preferring to add our extensions to separate modules or libraries.
The class of all types, including classes and other types.