Can somebody explain ?

View: New views
3 Messages — Rating Filter:   Alert me  

Can somebody explain ?

by Joel Foutelet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hello
Can somedy explain that :
Consider the facts
to('->').
to('<-').
to('!').
to('a').
and the answers of the request to(A) :
A = (->) ;
 
A = <- ;
 
A = ! ;
 
A = a ;
Why -> is treated differently ?
 
Thank you
 
Joël

Re: Can somebody explain ?

by Jean-Marc Vanel-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Cher Joël

-> is *not* treated differently, it is printed differently.
The reason is that is an operator visible by default.


2008/5/20 Joel Foutelet <joel.foutelet@...>:

> Hello
> Can somedy explain that :
> Consider the facts
> to('->').
> to('<-').
> to('!').
> to('a').
> and the answers of the request to(A) :
> A = (->) ;
>
> A = <- ;
>
> A = ! ;
>
> A = a ;
> Why -> is treated differently ?
>
> Thank you
>
> Joël

--
Jean-Marc Vanel
http://jmvanel.free.fr/
_______________________________________________
SWI-Prolog mailing list
SWI-Prolog@...
https://mailbox.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog

Re: Can somebody explain ?

by Joel Foutelet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

OK thank you :-)

I noticed it was the same for =< , ==, >= ...

Joël
----- Original Message -----
From: "Jean-Marc Vanel" <jeanmarc.vanel@...>
To: "Joel Foutelet" <joel.foutelet@...>
Cc: <swi-prolog@...>
Sent: Wednesday, May 21, 2008 1:57 PM
Subject: Re: [SWIPL] Can somebody explain ?


Cher Joël

-> is *not* treated differently, it is printed differently.
The reason is that is an operator visible by default.


2008/5/20 Joel Foutelet <joel.foutelet@...>:

> Hello
> Can somedy explain that :
> Consider the facts
> to('->').
> to('<-').
> to('!').
> to('a').
> and the answers of the request to(A) :
> A = (->) ;
>
> A = <- ;
>
> A = ! ;
>
> A = a ;
> Why -> is treated differently ?
>
> Thank you
>
> Joël

--
Jean-Marc Vanel
http://jmvanel.free.fr/
_______________________________________________
SWI-Prolog mailing list
SWI-Prolog@...
https://mailbox.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog

_______________________________________________
SWI-Prolog mailing list
SWI-Prolog@...
https://mailbox.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog
LightInTheBox - Buy quality products at wholesale price