Skip to content

Replace type.Initializiation with a type constructor function #1

Description

@Botffy

Currently the interpreter uses the Type of a variable to determine how to initialize it, types having an InitializationMethod enum value.

It'd be more flexible, and better for the separation of concerns, if the Grammar could define a SpecialName.TYPE_CONSTRUCTOR nullary function for types, and the Interpreter would call that on initialization. These would be implemented as instructions, at least initially.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions