-
Hello,
and when I am using the Stream parser I enable it in the parse function.
What happens is that even when I am using the File parser which has the following parse function :
The action is not disabled. Thanks very much in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
The short answer I can give now is that you can safely call |
Beta Was this translation helpful? Give feedback.
-
@d-frey We should check whether the interaction between the two base classes is what we expect it to be, possibly change the behaviour, and probably extend the documentation somehow... |
Beta Was this translation helpful? Give feedback.
-
I think there are multiple points of confusion here:
Let us know if you have further questions. @ColinH Not sure which of these information you'd like to see in the documentation... |
Beta Was this translation helpful? Give feedback.
-
@d-frey Now that you've put it so clearly I'd say 2 and 4 should be self-understood, 1 and 3 should be mentioned somehow and somewhere (in case they aren't yet). Agree? |
Beta Was this translation helpful? Give feedback.
I think there are multiple points of confusion here:
in.discard()
for non-stream inputs (as Colin mentioned). It is an empty method that gets optimized away completely, there is no overhead, so don't be afraid to make our life easy.disable_action
and you provide your ownapply()
, the latter overwrites the former'sapply()
-method, hencedisable_action::apply()
is not used and the actions do not get disabled.discard_input
as a base class is based onmatch
, not based onapply
- hence it will not be affected by disabling actions.discard
rule instead of using action class speci…