Skip to content

PL/I data moves: decide how a user-defined function call in an assignment is read (function name vs argument items) #9230

Backlog

Description

@squid-protocol

Found by the blind review of the widened DSF PL/I key (#9216). In X = F(Y);, where F is a user function and not a built-in, the engine and the key both read F as a data item (a subscripted name; the subscript is dropped), so the move is F -> X and Y is not a source. The blind reviewers read it as a function call and gave Y -> X. Eleven of the sixteen PL/I disagreements were this shape (F_SNU_DATO, F_ALDER, F_FELT_CHAR_PIC4, KONV_HÅMD_ÅMD, ...).

From one file the two cannot be told apart: the declaration (DCL F ENTRY, or the %INCLUDE that holds it) is not in the file. Built-ins are listed in the contract and are not sources; user functions are not mentioned. I ruled these key_correct (the key follows the written convention), but that convention may lose real data flow: the argument is what flows into the target.

Decision wanted: (a) keep the convention (a name followed by ( is a data item) and say so in the brief and the contract, or (b) resolve declarations (ENTRY / procedure names found in the file or its includes) and treat a resolved function as a call whose argument items are the sources. (b) changes engine rows, the key reader and the contract together.

🤖 Generated with Claude Code

https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions