Closed DUOLabs333 closed 2 years ago
I tried that and got Set::setraw: Cannot assign to raw object 5
, and gave me 4
.
@DUOLabs333 that is correct ++ and -- are respectively increment and decrement operators in C and in Mathics.
Oh, did not know that. There's still the error message, though.
@DUOLabs333 that is because increment and decrement assign to the variable and 5 is not a variable.
Ah, OK.
Description
Title
How to Reproduce
--5 ## Output GivenExpected behavior
5
Your Environment
Workarounds
Priority
Additional context
If you add a
try
in the specified place, you get a4
. Interesting.