For a type
in v0.5 you could define a function like this that allows the syntax b = a(2,1)
(it’s probably the same for a struct
in v0.6):
function (a::BitNumber)(width, val)
...
end
For a type
in v0.5 you could define a function like this that allows the syntax b = a(2,1)
(it’s probably the same for a struct
in v0.6):
function (a::BitNumber)(width, val)
...
end