Skip to content
Try Kata

core.lifecycle

Lifecycle protocol declarations. These interfaces do not by themselves establish ownership or deep-copy guarantees.

All modules · Writing docstrings

type Drop

Release resources when the interpreter drops a value.

Source, line 4

func drop(self)

Perform the value’s cleanup.

Source, line 6

type Copy

The declared interface for copying a value. Copy semantics remain under development.

Source, line 10

func copy(self): Self

Produce a value of the same type.

Source, line 12

type Dupe

The declared interface for explicit duplication. Deep-copy semantics remain under development.

Source, line 16

func dupe(self): Self

Produce a duplicate of the same type.

Source, line 18