Forums

Projectwide overflow checking

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

Projectwide overflow checking

Postby DelphiGuy » Wed Sep 12, 2012 2:29 pm

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.
DelphiGuy
 
Posts: 116

Re: Projectwide overflow checking

Postby Charles » Thu Sep 13, 2012 3:04 pm

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.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: Projectwide overflow checking

Postby DelphiGuy » Thu Sep 13, 2012 7:30 pm

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.
DelphiGuy
 
Posts: 116


Return to Discussion

Who is online

Users browsing this forum: No registered users and 8 guests