Skip to content

Allow to call functions without assign #2

@askalt

Description

@askalt

We need to allow the next construction:

int f(int a) {
     ...
}

int main() {
      f(42);
}

For now it forces to write:

int f(int a) {
    ...
}

int main() {
    int l = f(0);
}

And, which is worse:

void f(...) { ... }

int main() {
    void res = f(...); 
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions