Re: SWI prolog list unification problem

From: Stijn De Saeger (stijn_at_jaist.ac.jp)
Date: 01/18/04


Date: Sun, 18 Jan 2004 20:23:47 +0900

My god who thinks these things up... seriously.

well thanks for the explanation though.
s.

"Pierpaolo BERNARDI" <pierpaolo_bernardi@hotmail.com> wrote in message
news:sqmOb.106411$VW.4340229@news3.tin.it...
>
> "Stijn De Saeger" <stijn@jaist.ac.jp> ha scritto nel messaggio
news:bubpo0$f7i$1@jaist-news.jaist.ac.jp...
> > thanks for the reply.
> >
> > commas as operators, as opposed to item separators? that's news.
> > what are the semantics of these 'operators', and how are they different
from
> > the 'normal' commas?
> > s.
>
> Which commas are 'normal'?
>
> As operators, they are the most common operator in prolog,
> In programs they are used as logical conjunction, as in:
>
> a :- b, c, d. % == ':-'(','(b,','(c,d)))
>
> As data, they are used as the constructor for the ','/2 term, as in:
>
> (a,b,c). % == ','(a,','(b,c))
>
> Then they are used in the syntax of lists in square brackets notation
> as in:
>
> [a,b,c].
>
> and in the syntax of terms, as in:
>
> f(a,b,c).
>
> The first two cases are occurrences of the comma operator,
> the last two are just syntax.
>
> Cheers
> P.
>



Relevant Pages

  • Re: Sum several fields and "IF"
    ... But I cannot get it to stay in the control source of the txt box. ... "Al Camp" wrote: ... the syntax should be OK. ... All commas are where they should be. ...
    (microsoft.public.access.gettingstarted)
  • Re: Why tuples use parentheses ()s instead of something else like <>s?
    ... the syntax is a little more complicated than that. ... Commas don't ... requiring utf-8 as the source encoding. ... ASCII character set for so long that improving that seems to be ...
    (comp.lang.python)
  • Re: About those parenthesis....
    ... The commas are made ... Of course in Lisp there is a reason: Lisp syntax has hijacked lists ... Common Lisp just chooses to encode the abstract syntax in a particular way: ...
    (comp.lang.lisp)
  • Re: Export by TransferText in macro error
    ... Looks as though you've got one too many commas before the True for whether ... or not there are column headers. ... See http://msdn.microsoft.com/en-us/library/bb214141.aspx The syntax is ... DoCmd.TransferText TransferType, SpecificationName, TableName, FileName, ...
    (microsoft.public.access.conversion)
  • Re: Sum several fields and "IF"
    ... the syntax should be OK. ... All commas are where they should be. ... >>> Have managed to get the field score working well. ... I decided to go with your second recommendation ...
    (microsoft.public.access.gettingstarted)

Loading