Skip to content

Functions #11

@mrodz

Description

@mrodz
  • Specify arguments for function calls.
    • Should it pass the current operating stack as arguments? yes! ✅
  • make_function instruction to create a function "pointer"
  • call should be able to call a function "pointer"
  • New primitive: Function Pointer
    • Contains the location of the function.
    • Can contain an Arc of variables to freeze, perhaps to facilitate callbacks. This is tentative.

The line to distinguish this feature from #12 is very blurry. Stay tuned for updates as I decide what should go into which branch.

Note: I am using "pointer" very loosely here, as it is not an integer that points to a location in memory. It contains a String that tells the interpreter how to find a function.

Metadata

Metadata

Assignees

Labels

bytecodeIssues related to bytecodeneed-documentationThis issue introduces a new feature that requires fresh documentation

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions