Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Semantics of function call equations and statements #3632

Open
henrikt-ma opened this issue Dec 20, 2024 · 0 comments
Open

Semantics of function call equations and statements #3632

henrikt-ma opened this issue Dec 20, 2024 · 0 comments

Comments

@henrikt-ma
Copy link
Collaborator

henrikt-ma commented Dec 20, 2024

Isn't the specification missing some sections giving semantics of equations and statements in the following form?

f(args);

For example, I can find the type rule for a simple equality equation in 8.3.1, but where is the type rule for the equation above?

I suppose a record constructor can never be used in this form, since the record constructor should be seen as a function with a single output for purposes of these rules (they are sometimes not seen as just a function with a single output, but is see no reason to make such an exception here).

Speaking of record constructors, is this a valid way to ignore a constructed record value (which is syntactically in the correct form for ignoring all outputs of a function call)?

() := R(1.0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant