cage.inv not working?

Discussions, advice, bug reports and much more about the "cage" environment.
Post Reply
dhirst
Posts: 5
Joined: Sat Mar 10, 2018 11:44 am

cage.inv not working?

Post by dhirst » Thu Mar 22, 2018 12:49 am

cage.inv doesn't appear to do any inversion (in the help file) in v 0.5.0.1 beta
i.e. the original appears in the destination roll or score.
Cheers,
David

danieleghisi
Site Admin
Posts: 931
Joined: Fri Dec 03, 2010 1:25 pm

Re: cage.inv not working?

Post by danieleghisi » Thu Mar 22, 2018 10:27 pm

Hi,

you are absolutely right, thanks for spotting this.
This is not really a cage issue, but an underlying bug in the new bach 0.8 parser.
You can bypass it for now by substituting

"cents = 2 * $1 - cents"
with
"cents = -cents + 2 * $1"

inside the abstraction.
We'll surely fix this for next release (which will collect some fixes for the bugs we have spotted in 0.8).

dhirst
Posts: 5
Joined: Sat Mar 10, 2018 11:44 am

Re: cage.inv not working?

Post by dhirst » Fri Mar 23, 2018 6:04 am

Thanks Daniele for the workaround. It works fine.

Cheers,
David

Post Reply