Re: Ann: delay pack
Paulo Moura <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
On 10/08/2013, at 03:29, Michael Hendricks <[email protected]> wrote: > On Fri, Aug 9, 2013 at 12:22 PM, Ian Tegebo <[email protected]> wrote: > >> A minor suggestion, could you document how to support other >> predicates? The code is clear enough that I can almost figure it out, >> but a little help would be nice. >> > > Good suggestion. I've added the following language to the README: > > "To add support for additional built-in predicates, add clauses to the > mode/1 predicate in `prolog/delay.pl`. There should be one clause for each > mode in which the built-in can operate. Submit your changes as a pull > request." > > Aside from pull requests, I'll support additional built-in predicates as I > have use for them (or time to go through all the SWI Prolog docs). There's > not currently a way to dynamically add support for additional predicates. You could declare the mode/1 predicate also as multifile. > I plan to add that eventually, but haven't found a notation that I like > yet. Cheers, Paulo ----------------------------------------------------------------- Paulo Moura Logtalk developer Email: <mailto:[email protected]> Web: <http://logtalk.org/> -----------------------------------------------------------------