Replies: 4 comments
-
Would a simple solution be to declare the static Clo field with an initializer that creates, essentially, an empty object? By "empty" I mean an object where the options are set to default values. |
Beta Was this translation helpful? Give feedback.
-
@RustanLeino
There is also a far worse problem that I forgot to mention is that the For example I have method in my program to print a Boogie program to a file. It has an option to control whether the structured, unstructured or both is emitted. This can only be controlled via the Global state is evil! |
Beta Was this translation helpful? Give feedback.
-
@delcypher : I am revisiting this issue after a long time. In the above, you refer to a "Boogie API". What do you mean by that? |
Beta Was this translation helpful? Give feedback.
-
The global static for tracking options has been eliminated. |
Beta Was this translation helpful? Give feedback.
-
I'm currently using Boogie as a library and there is an issue that makes it incredibly painful to use. The issue is lots of the code refers to CommandLineOptions.Clo which is the global command line object which causes lots of problems
I'd like to propose the following
Beta Was this translation helpful? Give feedback.
All reactions