mbeckerle commented on PR #886:
URL: https://github.com/apache/daffodil/pull/886#issuecomment-1341772598

   When you restore a saved compiled schema, you should get the initial values 
of any DFDL external variables, regardless of whether they had any values set 
before the schema was pre-compiled. 
   
   Saving the parser does NOT lock-down/freeze or even utilize any variable 
values.  Saving the parser is supposed to be transparent, i.e., only faster, 
than using the uncompiled schema. 
   
   For example, expressions that refer to variables, even if the variable has 
been externally set, cannot be constant-folded by the schema compiler to remove 
the variable reference. Rather, any attempt to reference a variable at schema 
compile time causes the expression folding to stop. 
   
   There are, however, some tunables you can set which only affect schema 
compilation. Those are only used by the schema compiler so clearly one cannot 
subsequently modify them after restoring a saved processor. (You can, but it 
won't do anything because the compilation is already over. )  Example of this 
is a tunable to suppress a particular compile-time warning, or to specify a 
particular interpretation  (UnqualifiedPathStepPolicy is an example.) 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to