Open Lubsch opened 3 months ago
Thanks for reporting this @Lubsch. I've created a PR with improved documentation. For anyone interested in implementing this, I suspect the claude 3.5 sonnet API can handle the implementation if you provide it with the rest of the file (crates/compiler/gen_dev/src/generic64/mod.rs), if you get something working, bhansconnect can review it for correctness.
When trying to build the following test program:
I get the output:
When investigating the source, it's clear that
Num.neg
is simply not implemented forDec
. This isn't mentionend in the documentation or anywhere else I've looked.Additionally, using
Num.neg
on anyNum
that's notI64
orU64
is not supported from the repl. For example:You can of course work around this by subtracting from 0, but I think this should at least be documented.