Движок правил wb-rules 1.7/en: различия между версиями

Новая страница: «In previous versions of wb-rules, refering to a global variable, that is modified in several script files, may cause undefined behavior. Starting from v.1.7, th…»
(Новая страница: «As an example, here are two scenarios that run simultaneously in the rules engine. Each scenario defines variables and functions.»)
(Новая страница: «In previous versions of wb-rules, refering to a global variable, that is modified in several script files, may cause undefined behavior. Starting from v.1.7, th…»)
Строка 16: Строка 16:
Each scenario defines variables and functions.
Each scenario defines variables and functions.


В предыдущих версиях wb-rules обращение к переменной, изменяемой в нескольких
In previous versions of wb-rules, refering to a global variable, that is modified in several
файлах сценариев, может привести к неопределённому поведению. В версиях, начиная с 1.7,
script files, may cause undefined behavior. Starting from v.1.7,
поведение строго определено и такое же, как будто сценарий единственный в системе.
the behavior is strictly defined and is the same as if the script is the only one in the system.


В комментариях указан вывод команд log для ранних версий и для актуальной версии. Обратите внимание на var перед переменными.
В комментариях указан вывод команд log для ранних версий и для актуальной версии. Обратите внимание на var перед переменными.
12 063

правки