StaticCompiler - how to handle integer division error?

greatpet
Tue, 26 Dec 2023 15:30:28 +0000
General Usage

StaticCompiler.jl does not allow exceptions. I got stuck trying to compile code involving the mod operator %, as it can raise an exception DivideError if you’re dividing by zero. How can I work around this?

3 posts - 2 participants