Re: invalid directive foreign(...

"Michał Bieliński" <[email protected]> Sun, 6 Dec 2015 17:37:49 +0100
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <[email protected]>
Dnia 6 Grudnia 2015, 07:24, N, Christoph Schick napisał:
> Hi,

Hello.

> I got a message "invalid directive
> foreign(date_unix(?stamp,?year,?month,?day))."

In directive foreign you are not supposed to deliver parameter names from
C. Name a type instead:

:- foreign(date_unix(?positive,?positive,?positive,?positive)).

-- 
Michał