Skip to content

Implement Varargs Parameters support #6

@NotJustAnna

Description

@NotJustAnna

com.github.adriantodt.lin.vm.impl.FunctionSetupLayer#step(FunctionSetupLayer.kt:40):
image

Implementation Notes:

  • There must be atmost 1 varargs parameters.
    • This should be done at grammar/parser-level 1, but enforced at compiler & VM level 2.
  • The parameters NEED to be handled/loaded in a left-to-right order, even with varargs.

Footnotes

  1. See FunctionParser should disallow more than one varargs parameter. Lin#5

  2. See Modify bytecode to allow atmost 1 varargs parameter in a function. Lin#6

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions