Skip to content

coming 2 terms with term_expansion/2 #2607

Answered by triska
jjtolton asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@triska
Comment options

@jjtolton
Comment options

@jjtolton
Comment options

@hurufu
Comment options

@hurufu
Comment options

Answer selected by jjtolton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants