LEGACY DOCS · 12.0Stable is 13.2. This page stays because it still owns historical or unchanged contracts.CURRENT 13.2 →
RELEASE LINE13.2 STABLE13.1 PREDECESSOR13.0 PREVIOUS12.4 NATIVE MIRARCHIVE

V12.0 BASE CONTRACT

Borrowing

Immutable aliases use borrow; exclusive mutable aliases use borrow mut.

DByte 12.0 · Language

Contract§

Lexical lifetimes reject conflicts, hidden temporary extension, and escape.

Mechanics§

borrow creates lexical immutable aliases and borrow mut creates one exclusive mutable alias. A borrowed return is accepted only when it derives directly and unambiguously from one declared borrowed parameter.

Validation and failure§

Borrow escape, hidden temporary extension, ambiguous return provenance, mutation through immutable provenance and alias conflicts are rejected.

Evidence and boundary§

The corpus includes field, slice and closure captures so storage provenance is exercised beyond simple locals.