Skip to content

Commit b013efb

Browse files
authored
Note that @load_generated_functions() is intended to be called as a top-level expression only
See https://probcomp.slack.com/archives/C5T7HNLRY/p1602713555118100?thread_ts=1602701467.114500&cid=C5T7HNLRY
1 parent a4746a1 commit b013efb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Gen.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ end
2121
2222
Permit use of generative functions written in the static modeling language up
2323
to this point. Functions are loaded into the calling module.
24+
25+
This macro is intended to be called as a
26+
[top-level expression](https://docs.julialang.org/en/v1/manual/modules/)
27+
only; use in non–top-level scopes may result in incorrect behavior.
2428
"""
2529
macro load_generated_functions()
2630
for function_defn in generated_functions

0 commit comments

Comments
 (0)