A packed field that an edit reads keeps the positions of the edit mask #720

Manually merged
binjovi-bot merged 2 commits from l4b-decl into trunk 2026-11-04 17:23:54 +00:00
Owner

A packed field that an edit reads keeps the positions of the edit mask

%EDITC(p : 'J') loads the packed or zoned field p as it is (29 S off T)
and stores it to the temporary of the edit (35 tmp) with no conversion.
The compiler builds the edit mask from the digits and the positions of that
field, so the mask proves the positions of p for the whole module
(rpg_editc.learnScales, called from learnScales of rpg_statements.zig).
An earlier store of a decimal literal to p (p = 12.5) then has its
positions at the first pass, and its statement is recovered instead of
partial with type_inference/decimal_positions (d4-edit statement 8).
The test is src/rpg_decl_scale_test.zig.

Gates

{"checks":{"net_statements":0},"census":{"statuses":{"recovered":645,"partial":0,"unresolved":0},"regressions":0,"newly_recovered":0},"golden":"golden floor 173 ceiling 0 <= dump 173/5/0","legend":"regenerated","emit":{"worse":[],"better":0,"newly_clean":0,"clean_delta":0,"base":328,"new":328},"twins":{"groups":473,"recovered":465,"regressions":[],"newly":0},"allgroups":{"regressions":[],"newly":["savf/SC-ILE/EXPERIMENTS/d4-edit/stripped/object.savf 1"],"worse":[]},"full_check":{"exit":0,"seconds":1020}}
# A packed field that an edit reads keeps the positions of the edit mask `%EDITC(p : 'J')` loads the packed or zoned field `p` as it is (`29 S off T`) and stores it to the temporary of the edit (`35 tmp`) with no conversion. The compiler builds the edit mask from the digits and the positions of that field, so the mask proves the positions of `p` for the whole module (`rpg_editc.learnScales`, called from `learnScales` of `rpg_statements.zig`). An earlier store of a decimal literal to `p` (`p = 12.5`) then has its positions at the first pass, and its statement is recovered instead of partial with `type_inference/decimal_positions` (d4-edit statement 8). The test is `src/rpg_decl_scale_test.zig`. ## Gates ``` {"checks":{"net_statements":0},"census":{"statuses":{"recovered":645,"partial":0,"unresolved":0},"regressions":0,"newly_recovered":0},"golden":"golden floor 173 ceiling 0 <= dump 173/5/0","legend":"regenerated","emit":{"worse":[],"better":0,"newly_clean":0,"clean_delta":0,"base":328,"new":328},"twins":{"groups":473,"recovered":465,"regressions":[],"newly":0},"allgroups":{"regressions":[],"newly":["savf/SC-ILE/EXPERIMENTS/d4-edit/stripped/object.savf 1"],"worse":[]},"full_check":{"exit":0,"seconds":1020}} ```
binjovi-bot manually merged commit d5bbcf0f9a into trunk 2026-11-04 17:23:54 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sean/sourcerer!720
No description provided.