Skip to content

Commit 4a29a2a

Browse files
committed
maybe deepcopy but actually always
1 parent 069bc40 commit 4a29a2a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/model.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,9 @@ end
923923

924924
is_splat_symbol(s::Symbol) = startswith(string(s), "#splat#")
925925

926+
# TODO(penelopeysm) fix
927+
maybe_deepcopy(x) = deepcopy(x)
928+
926929
"""
927930
make_evaluate_args_and_kwargs(model, varinfo)
928931
@@ -933,9 +936,9 @@ Return the arguments and keyword arguments to be passed to the evaluator of the
933936
) where {_F,argnames}
934937
unwrap_args = [
935938
if is_splat_symbol(var)
936-
:(deepcopy(model.args.$var)...)
939+
:($(maybe_deepcopy)(model.args.$var)...)
937940
else
938-
:(deepcopy(model.args.$var))
941+
:($(maybe_deepcopy)(model.args.$var))
939942
end for var in argnames
940943
]
941944
return quote

0 commit comments

Comments
 (0)