-
I was reading @hurufu's post on But all the cool kids are defining |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
What do you mean with "not defined anywhere"? The link in your post shows several examples of modules that do define |
Beta Was this translation helpful? Give feedback.
What do you mean with "not defined anywhere"? The link in your post shows several examples of modules that do define
term_expansion/2
.term_expansion/2
is automatically invoked for every Prolog term that is read when consulting a file, with that term as the first argument. If the call succeeds, then the term indicated by the second argument is compiled instead of the original term, otherwise the original term is compiled.