Skip to content

Revise examples and description for traits #3923

Open
@JJ

Description

@JJ

Problem or new feature

Examples for traits seem to imply traits are called at compile time, as it clearly says in the description, compile-time hooks, which are run exactly once when the declaration takes place. This is not really clarified by the examples, which call the traited code exactly once. In reality, hooks are only called at compile time.

Suggestions

The examples are probably OK, if a few changes in variable names and how they behave is changed. See also #2714

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugError of some kind, from a typo to errors in the examples.docsDocumentation issue (primary issue type)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions