Clarify the documentation on scope when using rawArgs, see #1055

This commit is contained in:
jos 2020-04-04 17:24:36 +02:00
parent a23f9c385f
commit 3153de27ee

View File

@ -114,7 +114,9 @@ Where :
- `args` is an Array with nodes of the parsed arguments.
- `math` is the math namespace against which the expression was compiled.
- `scope` is the scope provided when evaluating the expression.
- `scope` is a shallow _copy_ of the `scope` object provided when evaluating
the expression, optionally extended with nested variables like a function
parameter `x` of in a custom defined function like `f(x) = x^2`.
Raw functions must be imported in the `math` namespace, as they need to be
processed at compile time. They are not supported when passed via a scope