Skip to content

Document serialization compiler intrinsics - #72

Merged
Frotty merged 1 commit into
masterfrom
codex/document-serialization-intrinsics
Aug 13, 2026
Merged

Document serialization compiler intrinsics#72
Frotty merged 1 commit into
masterfrom
codex/document-serialization-intrinsics

Conversation

@Frotty

@Frotty Frotty commented Aug 11, 2026

Copy link
Copy Markdown
Member

Documents the compiler-assisted serialization helpers merged in WurstScript#1224.

  • documents canonical wurstForFields, wurstMapFields, and wurstNewInstance<T>() declarations
  • explains IDE discovery and direct JASS/Lua lowering
  • distinguishes shallow compiler field iteration from recursive library/user codecs
  • documents class and tuple targets, mutability requirements, constructor semantics, and Lua specialization limits
  • clarifies that wire format, stable field identity, versioning, migrations, and integrity checks remain library concerns
  • retains the unprefixed spellings only as compatibility fallbacks
  • updates the linked Save and Load tutorial to use the canonical helper names

Rebased onto current master and conflict-free.

Validation: bundle exec jekyll build

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2e75ac1293

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread _doc/manual.md Outdated
codec separate from the rest of the game logic. See the [Save and Load tutorial](/tutorials/saveload.html) for
integration with Warcraft III's file API.
Keep serializable state in a small class and keep persistence policy separate from the rest of the game logic.
See the [Save and Load tutorial](/tutorials/saveload.html) for integration with Warcraft III's file API.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Update the linked tutorial to use the prefixed intrinsics

This integration link sends readers to _tutorials/saveload.md, whose field-mapping section still exclusively documents and demonstrates __wurst_forFields and __wurst_mapFields (lines 68–90). That directly contradicts this section's new API guidance and leaves tutorial users copying the obsolete spellings; update the linked tutorial alongside the manual.

Useful? React with 👍 / 👎.

@Frotty
Frotty force-pushed the codex/document-serialization-intrinsics branch from 2e75ac1 to 89a080c Compare August 13, 2026 21:50
@Frotty

Frotty commented Aug 13, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 89a080c19f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Frotty
Frotty merged commit 46f1e7b into master Aug 13, 2026
2 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.

1 participant