[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.

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

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

Best regards,

NOCC, http://nocc.sourceforge.net

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

This archive was generated by hypermail 2.3.0 : Wed Jul 17 2019 - 21:14:48 CEST