Skip to content

Allow parameter prop in contents() in generators #416

@ducky64

Description

@ducky64

Idea: in generators, no blocks can be declared in contents(), but parameter assignment is allowed. This can clean up things like needing a ForcedVoltage in buck converters to propagate the voltage, but without multi-stage generators that need to add to links and whatnot.

In the compiler. it would assert out if blocks (or at least connections) are defined pre-generate.

Things to figure out:

  • how can Export work with generators?
  • how does this interact with inheritance, where the superclass may define connections?
  • is this better than the current system, where nothing is available pre-generation, so it's unintuitive, but very consistent?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions