Skip to content
Discussion options

You must be logged in to vote

You don't need to use the init callback. (and indeed shouldn't use it for this kind of things)

You can also do something like this:

global Logic {
  pure callback create_array(int) -> [bool];
}

// later
in-out property <int> N: 9;
private property <[bool]> on: Logic.create_array(N);

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Tastaturtaste
Comment options

@ogoffart
Comment options

Answer selected by Tastaturtaste
@Tastaturtaste
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants