caching works correctly
This commit is contained in:
@@ -59,6 +59,11 @@ eval_sexp(Args = [{snowflake, <<"define">>}, {pattern, Pat}, Expr], Ctx0) ->
|
||||
Error ->
|
||||
Error
|
||||
end;
|
||||
eval_sexp(_Args = [{snowflake, <<"undefine">>}, {pattern, Pat}], Ctx0) ->
|
||||
case wfc_eval_context:undefine(Pat, Ctx0) of
|
||||
{ok, NewContext} -> {ok, noop, NewContext};
|
||||
Error -> Error
|
||||
end;
|
||||
eval_sexp([{snowflake, SF} | Args], Ctx0) ->
|
||||
% first evaluate the arguments individually
|
||||
case eval_sexp_args(Args, Ctx0, []) of
|
||||
|
||||
Reference in New Issue
Block a user