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

Exceptions in SICStus using clpfd
Dear All,

Currently under SICStus with clpfd, the following throws an exception:

?- assert(p(a)), X in 0..1, p(X).

I understand why the exception is thrown, but is there any way of making
the system merely fail, by changing an option globally?

The general problem I face is that I have a bunch of variables, some of
which may by unified using constraints such as 'X' in the above, and I
need to test equality of terms, try and unify against assertions (as
above), etc. I'd like to make any attempt to perform a unification which
ordinarily would contravene the typechecking of clpfd merely to fail.

I realise that the short line of code above can be supplemented so as to
get round this problem, but the program I have is large and such local
solutions would be a tremendous pain to implement comprehensively.

Maybe there is a simple solution, but I haven't found it.

Yours,

Robert Craven

Report this thread to moderator Post Follow-up to this message
Old Post
Robert Craven
12-02-04 09:05 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 07: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.