Class_isCloneable

Homepage

Tests whether the specified Class object is cloneable.

isCloneable := Class_isCloneable(ClassObject)

Parameters

ClassObject The Class object to use for the current operation.

Return Value

The object's class name if ClassObject is cloneable.
Otherwise, false (0) is returned.


The function's return can be used as a quasi-boolean value; the statement if Class_isCloneable(...) would be true if the object is cloneable, and false otherwise.

Remarks

If ClassObject is NULL (0 or blank), the empty string is returned, to indicate an error.

Related

Class_getClass, Class_getClassName

Class_cloneThis, Class_isWrapper

Class

Examples

;Creates a new String initialized to "Hello World!"
myString := String_new("Hello World!")

;Since Strings are cloneable, the object's class name ("String") is returned.
MsgBox, % "Test if myString is cloneable: " Class_isCloneable(myString)

;Creates a new Vector with the default parameters.
myVector := Vector_new()

;Since Vectors are cloneable, the object's class name ("Vector") is returned.
MsgBox, % "Test if myVector is cloneable: " Class_isCloneable(myVector)

Homepage