Skip to content

Known-on-entry (RM 6.1.1) should include short-circuit and membership operations #161

@sttaft

Description

@sttaft

An AdaCore engineer noticed that the definition of known on entry in the Ada RM 6.1.1(20/5-22.10/5) makes no mention of short-circuit control forms or membership tests. That seems weird, since a function call to a pure function is permitted so long as all of the operands are known on entry, and there is nothing preventing such a function containing a short-circuit control form or a membership test.

RM 6.1.1(22.4/5) includes a known on entry:

an invocation of a predefined operator where all of the operands are known on entry;

Perhaps that should be generalized to include short-circuit control forms and membership tests.

Metadata

Metadata

Assignees

Labels

ARG AgendaAn AI has been created for the issue and it is on the ARG's agenda for resolutionBug ReportAn issue with the current Ada Reference Manual

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions