Skip to content

How to use Label as an argument for generic circuits? #1136

Answered by hneemann
LeviPesin asked this question in Q&A
Discussion options

You must be logged in to vote

So far, it is not possible to access the parent label. But the idea is interesting. I will think about it.

Also, why I can't do something like this.isProgramCounter = args.Label == "PC"? It throws unexpected Token: EQUAL...

Since '=' is not an expression, as e.g. in C, no '==' is required.
Whether an assignment or a comparison is meant can be concluded from the syntax.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LeviPesin
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