Skip to content

feat(d): Improve export marking & naming - #1702

Merged
alexcrichton merged 5 commits into
bytecodealliance:mainfrom
QuantumSegfault:dlang-improve-export-marking
Sep 7, 2026
Merged

feat(d): Improve export marking & naming#1702
alexcrichton merged 5 commits into
bytecodealliance:mainfrom
QuantumSegfault:dlang-improve-export-marking

Conversation

@QuantumSegfault

Copy link
Copy Markdown
Contributor

Reworks the marking of @witExport to greatly reduce verbosity. @witInterface is now a separate UDA from @witExport, allowing the same @witInterface to easily be bulk applied to symbols. Within a resource, @witInterface is not needed and is inferred from the interface of the resource in question.

@witExport also now allows omitting the name, instead inferring it by kebab-casing what's assumed to be the camelCase or PascalCase name of the symbol identifier. Furthermore, when specified, @witExport also only requires the name of the actual method in question. No need to to include [method]/[static], or the name of the resource. e.g. [method]x.foo is now specified as just foo.

@QuantumSegfault

Copy link
Copy Markdown
Contributor Author

@alexcrichton

@QuantumSegfault
QuantumSegfault force-pushed the dlang-improve-export-marking branch from 7988d6a to 4886c7b Compare September 7, 2026 18:40
@alexcrichton
alexcrichton added this pull request to the merge queue Sep 7, 2026
Merged via the queue into bytecodealliance:main with commit 8c082d0 Sep 7, 2026
29 of 30 checks passed
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.

2 participants