Commit 5745a95f authored by Jeff Smits's avatar Jeff Smits

Added a TODO in the code for how to replicated strc/strj semantics

parent 19e70aec
......@@ -210,6 +210,7 @@ impl<'d, 'f : 'd> Eval<'d, 'f> for preprocess::Strategy {
s_then.eval(context, current)
}
Err(Error::StrategyFailed) => {
// TODO: pull off the overlay, apply it after the s_else branch, but only where the s_else branch left variables unbound. This is the semantics that strc and strj use.
context.drop_overlay();
s_else.eval(context, current)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment