Page 1 of 1

Projectwide overflow checking

PostPosted: Wed Sep 12, 2012 2:29 pm
by DelphiGuy
Does Cobra have a compiler setting for projectwide overflow checking? I couldn't spot one.

And is there an equivalent for C#'s "checked" and "unchecked" keywords?

Thanks.

Re: Projectwide overflow checking

PostPosted: Thu Sep 13, 2012 3:04 pm
by Charles
No, but here's another example where leveraging C# for a back-end gives us options:

cobra -native-compiler-args:"/checked+" program.cobra

There are no checked and unchecked language features right now.

Re: Projectwide overflow checking

PostPosted: Thu Sep 13, 2012 7:30 pm
by DelphiGuy
Code: Select all
cobra -native-compiler-args:"/checked+" program.cobra


That is way cool to be able to use C# compiler arguments. Sure, that will do everything I could possibly want.

Hard to imagine that I would ever use the "checked" and "unchecked" C# keywords. Those, I was only curious about.