Skip to content

@owned: read under -mm=own as under -mm=rc (comments) - #123

Merged
ASDAlexander77 merged 1 commit into
mainfrom
owned-comments-own
Nov 27, 2026
Merged

ASDAlexander77 merged 1 commit into
mainfrom
owned-comments-own

Conversation

@ASDAlexander77

Copy link
Copy Markdown
Owner

Comment-only change to match the compiler's TSLANG 215 (USER RULING 2026-11-27: what rc reads, own reads the same way).

  • lib.d.ts: @owned is now read under -mm=own as well as -mm=rc. The exception is a declaration that lends its result (@lends, or a result type this), which own goes by. A function lib.ts makes lend its result must say @lends here too.
  • core/core.os.d.ts: the @owned string functions return a string their caller owns under both rc and own.

No declaration changes. Checked: every public lending or borrowing function in lib.ts (ArrayBuffer.__bytes, SharedArrayBuffer.__bytes, DataView.buffer, JsonValue.at/get/push/set, matchAll, [Symbol.iterator]) already carries the matching mark in lib.d.ts.

🤖 Generated with Claude Code

The compiler now honours `@owned` under -mm=own too (TSLANG 215), except
for a declaration that lends its result (`@lends`, or a result type `this`).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant