I've got a prolog source file that allows me to use the ($)/2
meta predicate fine, but when I convert it to a module as follows, I get syntax errors wherever $
used to work:
:- module('mymodule', [mypred1/2, mypred2/3, ($)/2]).
:- use_module(library(func)).
I've tried reexport
as well, to no avail.
So doing things like X is mypred1$"something"
gives me a syntax error. However, removing the :- module(...
line from the source file fixes the issue.
How do I get $
functioning properly within a module?