BitIntegers.jl icon indicating copy to clipboard operation
BitIntegers.jl copied to clipboard

`requires exactly 1 or 3 arguments, got 2`

Open Moelf opened this issue 2 years ago • 3 comments

Sometimes the type is only interpreted as sign or not signed, in that case I try to use something like

@define_integers 32 _ Index32

but then it errors because _ = is illegal

all-underscore identifier used as rvalue around /home/akako/.julia/packages/BitIntegers/6M5fx/src/BitIntegers.jl:60

I think we can maybe add a special case for _ to ignore it

Moelf avatar Jan 28 '23 18:01 Moelf

Sounds like a goode idea.

rfourquet avatar May 16 '23 08:05 rfourquet

I will make a PR

Moelf avatar May 16 '23 13:05 Moelf

I would prefer having @define_signed_integer and @define_unsigned_integer in addition to @define_integers. Internally they could share most of the code.

PatrickHaecker avatar Aug 02 '24 05:08 PatrickHaecker