You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a temporary workaround, you can move .push outside of the procedure, like so:
{.pushobjChecks: off.}
procexample() =...
{.pop.}
The long-standing problem is that .push and .pop only apply to procedures, which also affects all the other check pragmas (e.g., boundChecks, rangeChecks, etc.). It should also be possible to use objChecks: off directly on the procedure, but that's currently not implemented.
Regarding fixing this, mirgen already supports intra-procedure check enabling/disabling, what's missing is processing the .push and .pop pragmas and implementing the option stack semantics. I'm busy with other things for the next week or so, but I could work on this afterwards.
Specification
The
objChecks
boolean flag toggles object conversion checks. It may be disabled via configuration or by using apush
pragma.Example
Actual Output
Expected Output
Additional Information
The text was updated successfully, but these errors were encountered: