You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The data directive processed by pp_ser allows an IF condition to enable/disable the serialization. The regex pattern matches IF . This behaviour leads to hard to fine bugs/errors as for example:
Example 1 (wrong): !$ser data arr=arr IF(ASSOCIATED(arr))
In this the case the condition is ignored and pp_ser doesn't generate the expected IF condition.
Example 2(correct): !$ser data arr=arr IF (ASSOCIATED(arr))
In this case the expected code is generated including the IF condition.
There should at least be a warning when the condition is ignored!
Changing the regex to IF is most likely a bad idea as it will match too many things.
The text was updated successfully, but these errors were encountered:
The data directive processed by
pp_ser
allows an IF condition to enable/disable the serialization. The regex pattern matchesIF
. This behaviour leads to hard to fine bugs/errors as for example:Example 1 (wrong):
!$ser data arr=arr IF(ASSOCIATED(arr))
In this the case the condition is ignored and
pp_ser
doesn't generate the expected IF condition.Example 2(correct):
!$ser data arr=arr IF (ASSOCIATED(arr))
In this case the expected code is generated including the IF condition.
There should at least be a warning when the condition is ignored!
Changing the regex to
IF
is most likely a bad idea as it will match too many things.The text was updated successfully, but these errors were encountered: