Re: [eclipse-clp-users] Labeling a struct.

From: Kish Shen <kisshen_at_...5...>
Date: Wed, 17 Mar 2010 17:22:07 +0000
Maged Zamzam 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.
> 
You haven't really given much information on the code you used to get 
the error. How did you try to label only the variables in posX and posY?

The error you got seem to suggest you are trying to label a variable 
that is not an integer domain variable (which is why the error is for 
indomain). You need to give the variables (those in position posX and 
posY in your items) an integer domain before they can be labelled.

Cheers,

Kish

-- 
This e-mail may contain confidential and privileged material for the
sole use of the intended recipient. Any review, use, distribution or
disclosure by others is strictly prohibited. If you are not the intended
recipient (or authorized to receive for the recipient), please contact
the sender by reply e-mail and delete all copies of this message.
Cisco Systems Limited (Company Number: 02558939), is registered in
England and Wales with its registered office at 1 Callaghan Square,
Cardiff, South Glamorgan CF10 5BT.
Received on Wed Mar 17 2010 - 17:22:31 CET

This archive was generated by hypermail 2.3.0 : Wed Sep 25 2024 - 15:13:20 CEST