RESET names the variable, and the cycle start takes its images #635
Loading…
Reference in a new issue
No description provided.
Delete branch "rpg-9-aa-reset-images-20261025"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
RESET names the variable, and the cycle start takes its images
A program with a RESET and an
*INZSRroutine has a cycle start that thetemplate did not know: after the routine call the compiler copies each
variable of a RESET into its image, then sets a second static byte. The
template reads those copies now (
rpg_cycle_template.zig), so the firststatement of the
r6a-reset-twoandr6a-reset-dsprobes is recovered, andthe
ENDSRof*INZSRno longer holds the compiler body.The RESET unit named the image, not the variable: the builtin copy pushes its
destination first, and the variable is the symbol with the INZ value of the
source and the stores of
*INZSR.reset name;now names the variable, andthe image, which only the compiler reads, is not declared. The data structure
of
r6a-reset-twois not declared yet: no statement references a subfield,so the object does not hold the structure.
Gates