Repository navigation
abandon f(param N): the abandonment path names the parameter that receives the resource (#3177) - #3493
Merged
Conversation
added 2 commits
November 20, 2026 17:58
…eives the resource, as drop and destroys do (#3177)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3177. Eric's ruling of 2026-11-20; the §31 words are blessed as written (spec v7.76).
drop f(param N)anddestroys f(param N)already existed (D209).abandonnow has the same form and the same rule:abandon f(param N): the resource is parameter N, the first when the parentheses are absent;fn f, since the abandonment path has only the representation to pass. The refusal names the parameter that is neither.The abandonment path calls it through a rendered helper, as a positioned drop does, before the destroyer.
Spec (§31): the
destructionproduction (( "drop" | "destroys" | "abandon" ) c_name [ "(" param_ref ")" ]), theabandon frow, and verification rule 2 (Shapes).Tests:
behav_3177_abandon_position(an abandon function that takes an error out-pointer first and the resource second: it runs once, then the destroyer once);err_3129_abandon_takes_morere-expected to the new message.Battery green;
:release-checksgreen.