[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: MSVC for linking etc.
From: |
Daniel Diaz |
Subject: |
Re: MSVC for linking etc. |
Date: |
Thu, 21 Mar 2002 13:47:50 +0100 |
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.
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.
>
> Paulo
>
> -----------------------------------------------------------
> Paulo Jorge Lopes de Moura
> Dep. of Informatics Office 4.3 Ext. 3257
> University of Beira Interior Phone: +351 275319700
> 6201-001 Covilhã Fax: +351 275319732
> Portugal
>
> mailto:address@hidden
> http://www.ci.uc.pt/logtalk/pmoura.html
> -----------------------------------------------------------
>
> _______________________________________________
> Users-prolog mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/users-prolog
--
Daniel Diaz address@hidden
http://pauillac.inria.fr/~diaz
gprolog --version 2>&1 | sed -n -e 's/By //p'