Skip to content

Add support for implicit Self in Initialize and Finalize operators#436

Open
Bazooper-blip wants to merge 1 commit intointegrated-application-development:masterfrom
Bazooper-blip:implicit-self-initialize-finalize
Open

Add support for implicit Self in Initialize and Finalize operators#436
Bazooper-blip wants to merge 1 commit intointegrated-application-development:masterfrom
Bazooper-blip:implicit-self-initialize-finalize

Conversation

@Bazooper-blip
Copy link
Copy Markdown

Delphi 13 automatically declares Self in Initialize and Finalize operators for custom managed records. Previously developers had to manually declare it as a parameter.

Updates findSelfType() in SymbolTableVisitor to skip classOf() wrapping for these specific record operators, so Self resolves to the record type directly.

Closes #416

Delphi 13 automatically declares Self in Initialize and Finalize
operators for custom managed records. Previously developers had to
manually declare it as a parameter.

Updates findSelfType() in SymbolTableVisitor to skip classOf()
wrapping for these specific record operators, so Self resolves to
the record type directly.

Closes integrated-application-development#416

Co-Authored-By: Claude Opus 4.6 (1M context) <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.

Support implicit Self parameter in Initialize and Finalize

1 participant