assert with constrained variables

From: <apretschner_at_gmx.de>
Date: Thu 26 Apr 2001 08:25:22 AM GMT
Message-ID: <7293.988273522@www31.gmx.net>
Hi there,

Eclipse reacts somewhat unhappily when predicates with constrained variables
are asserted:

:-dynamic(x/1).
?- X#>22, assert(x(X)).

gives me an error message telling some emulator does not work correctly.
Under Windows, TkEclipse even crashes.

(Actually, it is not really a surprise that something unexpected happens.
What one actually wants to, is
X#>22,dvar_domain(X,D),assert(x(V):-var_fd(V,D)).
or the corresponding CHR predicates. Works perfectly. However, I'd think the
system's reaction is somehat rough.)

Alex

-- 
______________________________
Alexander Pretschner
Software&Systems Engineering
Institut fuer Informatik, TU Muenchen
mailto:pretschn@in.tum.de
_____________________________

GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
Received on Thu Apr 26 09:25:32 2001

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:08:06 PM GMT GMT