Skip to content

Function parameter names #4

@phisiart

Description

@phisiart

Currently parameter names of a function are recorded in the function type.

TFunction {
    return_type : Type
    arguments : (name : String, type : Type)[]
}

In a function definition, the names are used.

However, this doesn't accurately reflect the C semantics. The names of parameters don't relate to the type of the function. What if you first write a prototype and then a definition? The first doesn't need parameter names and the second does. Does the second function type overwrite the first?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions