Hi, The labeling predicate expects a list of variables that can be instantiated with values of their domain. Usually the domain is integer. You have to call labeling with a list that only contains your posX and posY variables, not the entire struct. To do so, you can for example extract all these variables with a foreach loop and add them to a separate list. Oliver. On 17 March 2010 15:41, Maged Zamzam <maged.zamzam_at_...6...> wrote: > I have a struct called journal{type, priority, columns, lines, posX, posY} > and I would like to labeling the variables posX and posY only in the struct. > The problem is that if i try to label Items (List which contains the > journal types) ECLiPSe gives me a type error indomain. > > -- > ----------- > Maged Zamzam > Computer Science and Engineering > German University in Cairo > Egypt. > > Follow me on Twitter: _at_mandofagasta > Facebook: facebook.com/mandofagasta > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > ECLiPSe-CLP-Users mailing list > ECLiPSe-CLP-Users_at_lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/eclipse-clp-users > >Received on Wed Mar 17 2010 - 15:05:25 CET
This archive was generated by hypermail 2.3.0 : Wed Sep 25 2024 - 15:13:20 CEST