[eclipse-clp-users] Scope of variable access

From: <behemot_at_...78...>
Date: Tue Oct 07 19:07:28 2008
Dear users!

I've some variables and lists, which are initialized at the main (top) clause
i.e at the beginning of a program.

E.g.
:- lib(ic),
Bids_Prices = [4,3,5,4,7,9,8,11],
Decisions = [D1,D2,D3,D4,D5,D6,D7,D8],
Decisions::0..1.

Then I have a few predicates, which should use earlier declared variables e.g.
start:-
(foreach(X,Decisions) do write(X)).  
But there is no access to the Decisions list.
How can I do it ?

Best regards,
WP



___________________________________
NOCC, http://nocc.sourceforge.net







-- 
----- forpsi.pl - profesionalne uslugi -----
      Serwer i domena GRATIS na rok!
     Oferta limitowana,  nie zwlekaj!
           http://www.forpsi.pl
--------------------------------------------
Received on Tue Oct 07 2008 - 19:07:28 CEST

This archive was generated by hypermail 2.2.0 : Mon Jul 09 2018 - 02:05:29 CEST