Subject: setarg and backtracking

From: Rolf Socher <[email-masked]>
Date: Mon, 24 Jul 2000 14:14:55 -0500

Could it be that setarg/3 causes problems with backtracking? I call something
like
 	arg(N,Term,Value),
	delete(Value,X,Value1),
	setarg(N,Term,Value1)
where Value is a list such as [1,2,3,4,5], and X is a number. When backtracking
takes place on this branch, the variable Value has a value such as 
	[1|_G150310]
Can anybody help me with this problem?

Best regards, 

Rolf Socher-Ambrosius

°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
Rolf Socher-Ambrosius                                        
FH Oldenburg/Ostfriesland/Wilhelmshaven
FB E+I                                       
Constantiaplatz 4       
D-26723 Emden
---------------------------------
ACHTUNG: Neue Telefonnr.: +49-4921-807-1808
---------------------------------
[email-masked] 
http://www.et-inf.fho-emden.de/~socher