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

Statement functions #102

Open
ZedThree opened this issue Oct 10, 2024 · 0 comments
Open

Statement functions #102

ZedThree opened this issue Oct 10, 2024 · 0 comments
Labels
enhancement Improvement to the existing code base

Comments

@ZedThree
Copy link
Collaborator

These look like:

name(x) = x**2

Spec is:

15.6.4 Statement function

A statement function is a function defined by a single statement.

R1547 stmt-function-stmt is function-name ( [ dummy-arg-name-list ] ) = scalar-expr

They're deprecated and should be replaced by normal functions. I don't think they are used very much at all in the wild, but they look like array-indexing syntax -- except that they can appear in the middle of variable declarations, where they trigger an error on the next line.

@ZedThree ZedThree added the enhancement Improvement to the existing code base label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement to the existing code base
Projects
None yet
Development

No branches or pull requests

1 participant