-
Notifications
You must be signed in to change notification settings - Fork 156
Closed
Description
&self.#name[n] |
If I have an array with <dimIndex>2, 1, 0</dimIndex><name>REG%s</name>
, reg(0)
will return the element with REG2, but reg0()
will correctly grab REG0
. I find this behaviour rather unexpected. As a HAL author I have two options to grab the correct REG
based on it's index:
- I can either avoid using
reg(n)
and write a big match that mapsn
toregn
- Or I can write a big match that maps
n
to the numeric index and pass it toreg(n)
Metadata
Metadata
Assignees
Labels
No labels