Skip to content

Preserve proxy type when cloning a record class proxy#733

Merged
stakx merged 5 commits intocastleproject:masterfrom
stakx:record-cloning
Feb 4, 2026
Merged

Preserve proxy type when cloning a record class proxy#733
stakx merged 5 commits intocastleproject:masterfrom
stakx:record-cloning

Conversation

@stakx
Copy link
Member

@stakx stakx commented Feb 1, 2026

Closes #671.

@stakx stakx added this to the v6.0.0 milestone Feb 1, 2026
@stakx stakx self-assigned this Feb 1, 2026
@stakx

This comment was marked as outdated.

stakx added 3 commits February 4, 2026 23:01
 1. Cloning a record proxy should yield another proxy of the same type.
 2. User code should be able to intercept the clone method.
 3. "Proceeding to target" for an intercepted clone method results in
    the default cloning behavior described in (1).
@stakx stakx force-pushed the record-cloning branch 2 times, most recently from 0ec87ad to ec34dea Compare February 4, 2026 22:12
@stakx stakx merged commit ce45cd3 into castleproject:master Feb 4, 2026
4 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.

Support "with" for record proxies

1 participant