Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

documentation on the caret
can someone point me to somewhere online which describes how the caret
works in :

v(e,1,X^go(X))   --> [went].

I found this usage here:
http://courses.essex.ac.uk/lg/LG619/mt/index_0.html#32

It looks like I am getting extra "slots" without changing the "footprint"
of my rule and this is what I want (I am not using the correct words I
know).

Unfortunately google-ing for the '^' or 'prolog caret' does not work very
well.

Thank you for your help,

--
Marco

Report this thread to moderator Post Follow-up to this message
Old Post
Marco Scoffier
12-20-04 08:56 AM


Re: documentation on the caret
Marco Scoffier <marco@metm.org> writes:
> can someone point me to somewhere online which describes how the caret
> works in :
>
>   v(e,1,X^go(X))   --> [went].

It's an operator.  It doesn't *do* anything - your grammar rule just happens
to have as third parameter a compound term whose functor is '^'/2.  You coul
d
have written either of the following with essentially the same effect:

v(e, 1, X-go(X)) --> [went].
v(e, 1, foo(X, go(X))) --> [went].

IIRC, only bagof/3 and setof/3 treat '^'/2 specially - there it acts as an
existential quantifier.

HTH,
Jens.
--
mailto:jjk@acm.org                 As the air to a bird, or the sea to a fis
h,
http://www.bawue.de/~jjk/        so is contempt to the contemptible. [Blake]

Report this thread to moderator Post Follow-up to this message
Old Post
Jens Kilian
12-20-04 08:58 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Prolog archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 08:14 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.