Skip to Content

Under construction

This page is still being written; content and examples may change.

Generator

generator is a toolchain-facing metaprogramming declaration: a generator module is invoked at compile time and injects members into target types according to its rules. It is meant for cases that auto-generate boilerplate; everyday business code never touches it.

Declaration Skeleton

generator module GenLib; public generator Widget() target type { generate() -> MemberList { /* called by the compiler; produces the member list */ } }

编写到此Written up to here

本页其余部分尚未完成,内容随时补充。The rest of this page is not written yet; more content will follow.

Last updated on October 11, 2026