Replies: 1 comment 2 replies
-
|
I would say that in case 1, there should be an error: the dollar should be defined before the moduleoption statement is valid. In case 2, we could also make conflicting moduleoptions an error, which leads to well defined and unambiguous behaviour. This one may break existing user scripts, however. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, FORM refuses the following program due to the statement order:
It is easy to relax this constraint so that the above example runs. See #296. An example implementation is here.
But then, how should we handle the following cases?
Case 1
At the
ModuleOptionstatement,$ais undefined. So giving a warning and not making$alocal would be an option:But users might reasonably expect
$ato become local, if it is used in the same module.Case 2
Here,
$agets conflicting options,localvs.sum. Should it be local or sum? Should this be a warning or an error?Currently, FORM makes it local and ignores
sumwithout giving any warning.Beta Was this translation helpful? Give feedback.
All reactions