#294: rework option handling --------------------------+----------------------- Reporter: houtanb | Owner: sebastien Type: bug | Status: new Priority: major | Milestone: Component: Preprocessor | Version: Keywords: | --------------------------+----------------------- It's desirable at times to know whether or not a user has set an option in the .mod file.
To do this, we can hack the preprocessor to maintain a separate cellarray, that it would assign to every time it encounters an option. Something to the effect of:
{{{ {'option' , assigned , default_val} {<<string>>, <<0 or 1>>, <<general>>} }}}
This can be done in the preprocessor without changing the backend matlab code. It would thereby provide the possibility, when needed, to check whether or not an option was assigned by the user, allowing us to know whether or not we can change the value.
In addition to this, we need to think of a better solution than sharing options across commands. This will probably entail a renaming of options.
#294: rework option handling ---------------------------+----------------------- Reporter: houtanb | Owner: sebastien Type: enhancement | Status: new Priority: major | Milestone: Component: Preprocessor | Version: Resolution: | Keywords: ---------------------------+----------------------- Changes (by sebastien):
* type: bug => enhancement
Comment:
No longer sharing options across commands is unfortunately not possible without breaking existing MOD-files. So this can only be done when/if we re-design the MOD-file semantics, in a major Dynare version (5.0 or 6.0).