A file operation that a subprocedure runs through the main's dispatch switch #688
Loading…
Reference in a new issue
No description provided.
Delete branch "rpg-dispatched-read-20261101"
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?
A file operation that a subprocedure runs through the main's dispatch switch
A
readin a subprocedure (SC-ILE/OPS fk-subp2 statement 26,read opsf1in GETNEXT) makes no run-time call of its own: it stores a request code
and calls the main procedure, whose dispatch switch (
rpg_io_routines.zig)runs the routine that holds the
_QRNX_DB_READcall.rpg_file_ops.ziginlines that routine into the statement, as it already inlined a routine
of the same procedure, when the selector of the switch is the field the
statement stores and the case value is the code it stores; the routine
runs from the case's label to its return through the case's slot. The
routine proofs of every procedure are computed before any statement is
read, since a subprocedure precedes the main in the module. The twin's
compile in the matrix is the calibration: the emit equals the probe source
up to names.
Gates
aa9a9e1c2bfce92da189