[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: MSVC for linking etc.
From: |
Jørgen Villadsen |
Subject: |
Re: MSVC for linking etc. |
Date: |
Fri, 22 Mar 2002 10:14:08 +0100 |
Daniel Diaz wrote:
> Paulo Moura wrote:
> >
> > On Thursday, March 21, 2002, at 10:42 AM, Jørgen Villadsen wrote:
> >
> > > A small question: the dynamic directive takes a single argument, but
> > > other Prolog's like YAP seem to require that there are NO parentheses -
> >
> > No. Yap supports the ISO standard but also accepts (some) directives
> > declared as operators.
Does Yap support the ISO standard in this case - my version 4.2.0 does not
accept :-
dynamic(p/1,q/1). ???
> If parentheses can be omitted is because some directives are declared as
> operators. So you can
> either declare them, e.g.:
>
> :- op(1150,fx,dynamic).
> :- dynamic foo/1.
>
> Or use a classical functional notation which should work in every Prolog (and
> adopted by ISO):
>
> :- dynamic(foo/1).
>
> >
> > > I guess the ISO standard requires the parentheses, but would it for
> > > compatiblity be possible to allow mission of the parentheses.
> >
> > Correct.
> >
I also had a question about the need for MSVC for gplc... any comments?
Thanks, Jørgen Villadsen