Static methods
staticcopy<T>(v:T):T
Creates a deep copy of v.
The following values remain unchanged:
- null
- numeric values
- boolean values
- strings
- functions
- type and enum references (e.g.
haxe.runtime.Copy,haxe.ds.Option) - instances of Date
- enum values without arguments
Any other value v is recursively copied, ensuring
that v != copy(v) holds.