[eclipse-clp-users] exporting variables outside for

From: Bogdan Tanasa <g-bogta_at_ida.liu.se>
Date: Thu, 08 Apr 2010 12:31:10 +0200
Hi,

I am trying to do something like this:
...
(for(I, 1, NN), param(NG, RHO, YMSP) do 
		length(Z, I), 
		append(Z, _, YMSP), 
		checkRho(Z, RHO, NG)),
writeln(NG)
..

for each I the NG will take different values and would like to keep the
last one but I receive the No answer.

I assume the problem is when I = 2 because NG already has a value and will
interact with the param. 

How can I solve the problem?

Best regards,
Bogdan.
Received on Thu Apr 08 2010 - 11:08:26 CEST

This archive was generated by hypermail 2.2.0 : Thu Feb 02 2012 - 02:31:58 CET