3 Commits

Author SHA1 Message Date
Janmejay Singh
2808d4805e Fixed race-condition in async-action that is to consume mutating messages (it optionally allows message to be copied, rather than just reffered-to, so async-queue has a copy which does not change). It is an optional-param, defaulted to current behaviour of not copying.
This is not required for 'call <ruleset>' statements, because they already copy message.

As of now, this is relevant when foreach feeds messages to an async-action.
2015-04-14 11:15:14 +05:30
Janmejay Singh
c9d7d85d01 Test and fix for "No initialization of action/call statements in body of foreach statement"
(+ added some files which were missed in the commit before, test related to asserting behavior when non-array object is iterated upon)
2015-04-14 08:54:54 +05:30
Janmejay Singh
4ca5e217e2 Adds support for 'reset' statement (it has syntax similar to set 'set', but _unlike_ 'set' always force-sets the given value insteed of conditionally merging it, or not saving it because it is trying to replace an object with a leaf value etc).
Syntax:

reset $.foo = $!bar;

etc.
2014-12-17 11:39:31 +01:00